Cough/cold during pregnancy.

Is it okay to take prescribed codeine cough syrup while pregnant? I'm 12weeks along, and suffering with a horrible cold. Taking that will really help my throat, and let me sleep at night. Do you guys know of any other medications that are safe? I heard dextromethorphan (DM) is okay aswell. Thanks :)