Yes, by both parents. My mum usually because she deemed that I'd been cheeky - on one occasion she needed to leave somewhere early because there were no public toilet & she needed the loo. Apparently I said she could go "in the bushes", which is what my sister & I always had to so. She turned round in the car & walloped me. My dad didn't see, & asked why I was crying when he got back in, so my mum told him. I can't have been more than 3 or 4 as my feet didn't touch the front seat.
My dad occasionally used to hit me, I woke up on the floor once when I was about 9, but he's an alcoholic. I'd got in the way of the drinks cupboard. I never told anyone in RL until a couple of years ago when I mentioned it to DH.
I did smack DD once. Ever since she first learned how to walk (just around her first birthday) she hated riding in the buggy. Always wanted to walk. But, she was a bolter. We had one of those backpack things with the reins on for her. One day, as usual, (much older than just one y/o) she was trying to escape on the way home, I was struggling with the buggy (always necessary as she'd often decide she was tired & just sit down), & she ran out into the road, straight into the path of a car. Thankfully it swerved, & I yanked her back, but it was bloody close. I am disabled, so I struggle with physical things sometimes, & she was too little to understand properly. She was laughing, like it was a game. To add insult to injury, we were practically home. I smacked her, then I got her in the house & just absolutely broke down. I hugged her, said I was sorry for smacking her, & that I was glad she was ok. She was crying but she only started when she saw me crying - when I'd smacked her she just looked surprised, TBH. DH came home about an hour later & I was still a complete mess. I've never smacked her since. It broke my heart.