20 weeks pregnant and I have diarrhea. Is this bad?

Help

I been 2 days with diarrhea and I’m trying to stay as hydrated as I can . Is this bad? Should I go to the hospital