9 weeks and throwing up very bad

Did anyone uti antibiotics make them throw up a lot ? My ob found bacteria in my urine so they prescribed me with ( macrobid ) I’ve been taking them for 3 days now and today I threw up 4-5 times , everytime I eat it comes up . Idk if it’s from the side effects or just pregnancy, I still have like 8 left