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

The diagram that i showed is the same for mine except it doesnt use the arduino for power and it has a 12v external source that is stepped down to 5v from the regulator.
When i am able to I will make a schematic and post it, thanks everyone again for your continued input.