Horrible stomach pain

I’m 26 weeks tomorrow and I’m getting horrible stomach pain, to the point where I can’t walk and I’m pretty sure it’s from needing to use the bathroom and having gas, has anyone else experienced this