Is robitussin really okay while pregnant?

I have a horrible cough/cold that has lasted over a week. Robitussin is listed as pregnancy safe on my Dr’s website.. has anyone else heard this?

I’m skeptical to take medicine but also have been miserable and not sleeping for a week! I’m 20 weeks.