Robitussin while pregnant

I have a really bad cough and stuffy nose and I was told to take it. I’m still iffy about taking any medicine while pregnant I’m 22 weeks.