Medications while pregnant


Have any of you been told you can take Robitussin or like Mucinex during pregnancy? I just thought it was weird that this doctor said i could, but last time i was sick (i am congested with a cough) while pregnant that doctor basically told me if tylenol didnt fix it, all i could do was rest & drink fluids.