Safe medicine to take?

For a cold? I have mucus and I’m coughing, and every time I cough I gag because of the nausea so I just need something that’s going to stop this cough. 😭 Any help?

I have DayQuil Severe Cold and Flu, can I take that??