5weeks and sick! Can I take meds??

I just found out I am prego and I have been sick this weekend with a fever/cold...is it safe to take cough meds? Like sudafed????  I'm nervous !