There are different classes of drugs. I believe it goes from A to D. D being the most dangerous etc. Ask your doc to be sure.
Considering even taking ibuprophin is a no-no while pregnant I would say definitely not. I know ibuprofin can cause heart defects in the baby.
Ask your doctor. I wouldn't take it without checking first.