No.I need a 5v relay but the signal input needs to be 12v. Would I be correct in saying, all I need to do is swap out the J3Y NPN for another NPN transistor that can handle 12v at the base?
For that you don't need the diode.Sorry wrong schematic. Updated now. What will the diode be doing?