“Menthol has a cooling effect, which will help calm the discomfort of a sunburn,” Howard Sobel, a New York City-based dermatologist told Allure. “If there is aloe in the shaving cream, it will work as an anti-inflammatory, and help relieve the irritation of burnt skin.”