Maybe. Maybe not.
I didn't that time, but I immediately put it back in gear. Probably took a few years off the parking pawl.
Shifter systems are designed to prevent this - this car had a shifter issue we were working on.
It's a hard thing to do any more, the lock outs have gotten a lot better. Pretty much impossible with push-button shifters.