Please help ! Advice needed

Tiffany

I am 8 weeks pregnant on Thursday and since 11 last night I have been throwing up constantly and have diarrhea it's also really painful down below I e stinging. I am really worried about the baby because I have started with lower stomach and back pain quite bad. Is there a chance this had affected the baby?