Hi,
Yes you can if you're using it as a switch. From the datasheet Ic of BC547 is 500 mA. But if the layout is already done, BC547 is not suitable because the collector and the emitter are swapper in position. For the same pinout use 2N2222 to replace 2N3904. There're some other replacement can be used as well.