Besides its primary use in managing nausea and vomiting related to cancer treatments, ondansetron is also used for nausea and vomiting associated with surgery and, in some cases, pregnancy. However, its use during pregnancy is typically reserved for severe cases where other treatments have failed, and the potential benefits outweigh the risks.