Zofran ??

Is it safe to take Ondansetron (zofran) when pregnant? I’m 22 weeks and have heard mixed reviews