Yes, the engine should be off when the WD is sprayed. WD40 is a water dispersant and will help an engine with a damp ignition system start.