According to this website, they say yes you can take it. Although I would call your doctor just to make sure.
medicine during pregnancy
when you're pregnant, you make certain vital adjustments to your lifestyle. You give up cocktails and you stop smoking. Perhaps you cut down on your two-latte-a-day habit. But medications are more of a gray area. Your obstetrician's office may give you a handout like the chart below that lists over-the-counter medicines considered safe for pregnant women to take for the occasional stuffy nose or headache. While these drugstore remedies can provide welcome relief, always check with your doctor or midwife before taking any kind of medicine. If you have a question about prescription drugs, talk to your doctor or midwife about what's safe. (some prescription medicines, such as prozac may be safe to take; others, such as accutane, are known to cause birth defects.)
safe remedies for common pregnancy complaints
problem safe to take
indigestion, gas, upset stomach antacids for acid indigestion or heartburn (tums, rolaids, mylanta, maalox) simethicone for gas pains (gas-x, mylicon, phazyme)
cough or cold guaifenesin plus dextromethorphan (robitussin dm, benylin expectorant, nyquil, vicks cough syrup) cough drops vick's vaporub
pain relief, headache, or fever acetaminophen (tylenol, anacin-3)
allergy relief chlorpheniramine antihistamine alone (chlor-trimeton allergy tablets) avoid decongestant sprays, as they can damage nasal passages if used frequently
constipation, diarrhea, and hemorrhoids bulking products can be used regularly (metamucil, citrucel) laxatives can be used occasionally (colace, dulcolax, milk of magnesia) hemorrhoids (tucks, preparation h, or anusol) antidiarrhea medicine can be used occasionally (kaopectate, donnagel) avoid pepto-bismol because it contains aspirin
insomnia diphenhyrdamine (benadryl, nytol, sominex-2)
first-aid preparations neosporin, cortaid, lanacort