So "I'm" an idiot and can't drive

Just curious, I don't know the answer. On these newer car, with
"push to start, and push to stop", buttons, will the engine shut off, if you are driving and push to stop?