Do you need to supply higher voltage to a solenoid if using a flyback diode

It passes through a 5v regulator, so the solenoid does receive 5v.