Diarrhea and a lot of pain during third trimester

I am currently 32 weeks and 3 days pregnant and I’ve been having a lot of diarrhea and pain could this be a sign of something?