Quick question. Not pregnancy related

Brittany • Mommy to a wonderful 12yr old boy, 9yr old boy 7yr old girl 6yr old girl and 3yr old girl. Due March 11th 2023 with a boy.
If your 5yr old accidentally hits you in the face with a shirt they were throwing would you punish them? They reason for him throwing the shirt was cuz he was throwing it on a pile of clothes on the couch.