Diarrhea when pregnant

I’m currently 34 nearly 35 weeks pregnant n I am very worried as I’ve been having diarrhea of n on for the past month n half is this something I should be worried about