TMI Tummy Troubles 13 weeks Pregnant

Last night I spent pretty much the entire night on the toilet. It was watery stools, this morning turned into very loose stools but not complete water. It must’ve been something I ate, but aside from dehydration, which I’m not I’ve drank lots of water & peeing a lot, can it harm the baby?