If you're driving down the freeway, putting the gear selection lever to neutral would be a much better choice than killing the engine and taking out the key.
If you're truly standing on the brake, then it ought to work, but you might not think of it. I'll bet a lot of people don't usually think of any gears but park, normal forward and reverse.