Diarrhea - sorry tmi but please read😭

I’ve had an upset stomach since this morning starting at like 6am and it’s 9am now, like 3 times now my tummy gets crampy and I have to go to the bathroom and it’s diarrhea. I’m 30 weeks. Could this just be something I ate or is this concerning?