It’s hard to keep track of all the new “rules” doctors recommend you follow when you’re pregnant.

Generally, yes, you can—but there’s more to it than that. Here’s everything you need to know about taking Benadryl while pregnant.

Benadryl, also known as diphenhydramine, is an FDA-approved antihistamine used to alleviate symptoms commonly associated with allergies, hay fever and cold symptoms, like a runny nose and sneezing.

A pregnant person might want to take Benadryl for a variety of reasons, but one of the first and most obvious ones is to alleviate allergy and cold-like symptoms.

“A pregnant person can take Benadryl to help alleviate allergy symptoms during pregnancy,” says John Zhang, M.D., founder and medical director of New Hope Fertility. “It can also prevent and treat nausea, vomiting and dizziness caused by motion sickness.

As long as you don’t take more than 50 milligrams, Benadryl is considered generally safe to take during pregnancy.

That being said, it’s generally considered very safe and unlikely to harm a baby. “We’ve been using it for decades and decades,” emphasizes Dr. Sullivan.

Whether you’re dealing with seasonal allergies, a cold or you’re struggling to sleep well, experts suggest you should feel safe taking Benadryl––but you should always consult your doctor before taking any medication while pregnant.