Yes, but you should wire a diode across the coil terminals in reverse bias to suppress transients when de-energizing.
Lefty
Yes, but you should wire a diode across the coil terminals in reverse bias to suppress transients when de-energizing.
Lefty