Diarrhea at 6 weeks pregnant

I have a bug I think. I have had six or seven episodes of the bathroom today. Will this hurt the baby?