29 weeks 6 days

Is it okay to have really bad diarrhea and gas pains while pregnant?? I ate some Chinese food that’s just going right threw me and this is my third time on the toilet in the last hour 🤦🏽‍♀️🤦🏽‍♀️ Just wondering if it affects baby at all??