Any nurses or Drs here???

Diana

My doctor prescribed me ondansetron for my morning sickness. I'm about 7 weeks. I looked it up and it says it's not the best. I took two already, I will request a new one on Monday, but I'm just confused why he would prescribe that to me when he knows I'm pregnant? Is it bad or no???