Wiring Electric Fans

You confused me a little. Are what your saying is to use the wire that is only hot when the ignition is on to the switch I want to run and a ground?