Can NPN replace Relay Module

DVDdoug:
Yes, a transistor will work. Or if you're running it from 5V you can just connect an Arduino output-pin without the transistor.

it will safe for arduino?