Diarrhea harmful for baby?

sara

I have been having a lot of diarrhea lately especially after my coffee consumption and then water. Is it bad for the baby? I’m only 5 weeks pregnant