diarrhoea & stomach bug 27 weeks pregnant

Hi everyone.. I'm 27 weeks pregnant and I keep getting bad tummy cramps every so often and having to run to the toilet very often.. having really running diarrhoea is this normal at 27 weeks or should I be worried? 😐