Mucinex while pregnant!!?? 26 weeks

I need to go back to work as soon as possible! I've been out for a week with a respiratory infection, getting better but still have this dry cough. Will mucinex work?