It's actually a valve and a piston you have to worry about. At normal engine speeds the valves will simply snap shut if the cam stops spinning.
Valves slapping piston is generally only a worry with an interference engine design.[1]
Valves slapping piston is generally only a worry with an interference engine design.[1]