Can contractions feel like diarrhea pain?

Im 38 weeks and I've been having this intense pain and running to the bathroom every 10 minutes thinking I'm going to have the worst diarrhea but nothing happens? It makes my belly super hard and its unbearable. Are these contractions??