I’m done this numerous times and unfyhad to buy a new battery each time. Needless to say I am now diligent about pulling the key out of the ignition.
I’ve also started using the pull start in the winter when it starts hard so I don’t drain the battery.