pregnant taking zofran???

Cali☀️
Okay I never take anything while pregnant except prenatals but I had this stomach virus that wouldn't let me stop throwing up and the doctor prescribed me zofran. I looked it up and it's a class B but then I see all these scary stories saying their babies were born with birth defects. I took two pills so far and am scared that I even did that. Anyone take it before and their baby turn out fine? Advice/opinions ??