I’m 5 weeks pregnant and I have diarrhea

I’ve been having diarrhea for a day and a half now and I’m worried this can cause me to miscarry. Is this something I should worry about?