No, it is not okay for anyone to hit or physically harm you, regardless of their emotions or reasons. Violence, including hitting, is not an acceptable or appropriate way to express anger or frustration.
Physical violence is harmful and can cause serious physical and emotional damage. Your safety and well-being should always be a top priority. If you are experiencing any form of abuse or violence, it is essential to seek help and support from a trusted adult, friend, teacher, counselor, or a helpline that specializes in supporting those facing abuse.
Remember, everyone has the right to live without fear of harm or violence, and it's crucial to talk to someone who can assist you in getting the help you need.