Cough

I'm 24 weeks and coughing and it hurts.. it hurts in my chest bad..and feels like it's cutting my throat ..some plemn I got up was green.. doctors office not open today...should I get some Robitussin and wait it out or go see a doctor now???😔😔