A warm engine is okay, but a hot engine is more likely to warp or crack. This is because spraying cold water on a hot engine causes it to rapidly cool and stresses the metal. It is best to wait until you can safely touch your engine for a few seconds before starting any cleaning procedures.