Hurt the baby?

Me and my SO were playing around and his knee hit me in my belly button and since then I’ve been cramping. We went swimming and my ankles swelled up and the cramping got worse. Do I need to go get checked I’m 34 weeks pregnant? I’m laying down now and cramping is not going away.