Medication question

Lupita
So I been having horrible nausea and I threw up today 3 times it always like that if I don't drink the nausea medication the Doctor Prescribed me. I told me friend yesterday cause she's a first time mom about what's helping me with the nausea and she told me that meds are bad for the baby right now. So I started to worried and I was thinking to myself "that's the only thing that helps me with the nausea and helps me to eat good" cause right now I haven't aten nothing cause of the nausea. Is anyone taking medication for the nausea? is it really bad for the baby? Should I stop? Cause I didn't took one today and the amuse is horrible and throwing up 3 times is more horrible. I'm just worried for my baby health and I don't want it to be my fault that I got my baby sick for drinking medication prescribed by the Doctor for nausea.