Zofran for Vomiting

I have been nauseous for the last 2 weeks and started throwing up today. I haven't been able to keep down fluids or food. Has anyone been prescribed zofran? I'm reading mixed studies on whether or not this is safe during  pregnancy.