Hit in the ribs?

Earlier I was accidentally hit pretty hard in my ribs, under my right boob. it’s bruised and it hurts on the right side and in the middle to breathe. should I go to the doctor or just rest? Im worried it could’ve punctured an organ or something which I know is unlikely but I’m anxious. I’m also 29 weeks pregnant but the baby is kicking right now so I’m not super worried