Will food poisoning harm baby?

So last night I threw up this thick brown vomit, I think I had something bad at a bbq yesterday. From then onwards, I had intense stomach cramps every half an hour, I felt like someone was ripping my insides in half, i also had all this pressure in my lower stomach as if i needed a poo but I didn’t, I ended up ringing the hospital at 2:30am as I was genuinely worried my stomach was contracting or something. There was nothing they could do as I am only 19 weeks so I stayed at home, I feel better this morning, still experiencing sharp pains, I’m just worried it might of done some harm? Has anyone experienced similar?