You may also have a nighttime cough when you’re taking medications such as ACE inhibitors for high blood pressure. These are known to have a dry cough as a side effect, Mathis says.