Sex hurts

So whenever I have sex n I'm on top once I start moving kinda like twerking on his D my bottom left side on my stomach starts hurting. Its annoying because everytime I do it it starts to hurt. I'm 5 months already so idk if that has anything to do with it.

If it hurts does it mean I'm hurting the baby