Vomiting and diarrhoea in pregnancy

Tammy

I have had vomiting and diarrhoea for the last 12 hours from a bug.will my baby be ok? I’m 12 weeks on Friday.