Phenergan for nausea?

Millie
Don't know that I spelt that right, but my doctor prescribed me phenergan for nausea? I didn't expect that, especially for morning sickness cause it makes you sleepy or it does me anyways. Anyone else taken it during pregnancy