I went to a party my Mom told me I was not allowed to go to because she knew kids would be drinking. I went anyway and my Mom spanked me. Is this ok?

I went to a party that my Mom told me I was not allowed to go to. My Mom told me no because she didn’t want me to go to a party we’re there could be drinking or where anything else bad or dangerous could happen. I went anyway and I came home late that night and went to bed and assumed I got away with it. The next day my Mom told me she saw me sneak back in and saw were I was with the tracking app on her phone. My Mom gave me a bare bottom spanking and said she will not allow me out of her sight until further notice. Was my Mom justified or have a right to punish me like this?
I went to a party my Mom told me I was not allowed to go to because she knew kids would be drinking. I went anyway and my Mom spanked me. Is this ok?
Post Opinion