electromagnet and PSU

Does your electromagnet has a diode across it as a flyback? so when you reverse it you essentially short out the psu