Can diphenhydramine be used as a sleep aid? Diphenhydramine can be used as a short-term sleep aid to help ease occasional sleep problems, such as when you have a cold or cough and it is preventing you from falling asleep. Older adults, children under age 16 and pregnant women should avo...