Antihistamines can be useful in treating coughs caused by allergies. They work by reducing the body's histamine response, which can lessen symptoms like runny nose and post-nasal drip that contribute to coughing. However, they are not effective against coughs caused by viral infections.