B6 for nausea?

The doctor told me to take b6 for my Nausea. But on the bottle it says do not take while pregnant? Any advice