No, it is not harmful. They just taste nasty. I have had a wicked cough too an I have broken down and used a couple of halls too. Mucinex DM is safe too and it worked wonders for me along with tylenol sinus too.
There's a list online of what medicine you can take while pregnant.