Medicine while pregnant

I'm currently 26 weeks and have a really bad cough and chest congestion, was wondering if anyone knows of a medicine that is safe to take while pregnant ?