It's not particularily harmful but you should check with your doctor still.
If you're ever curious about whether a drug is safe or not, an awesome website is Safefetus.Com/. You just search for the drug and it'll tell you whether it's safe to take during pregnancy or not. :d