Pregnancy and Zofran

Alissa
Is it safe to take Zofran during your second trimester ? I haven't been able to keep any food down for the past couple of days. My doctor prescribed it to me a few weeks ago, then I was told it wasn't safe during pregnancy. Now I am told it is okay for the second trimester. Someone please help 😔