This statement is true. From the National Library of Medicine (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2917074/)
I found the answer in an article by Bijil Simon Arackal and Vivek Benegal on the National Library of Medicine website. The information in this article is from various publishings by medical journals and the results of a study conducted to find correlation between erectile dysfunction and alcohol consumption.
There is a relationship between alcohol consumption and a man's ability to get an erection. However, it does not occur in every male and is more common in those who heavily depend on alcohol on a regular basis.
ARACKAL & BENEGAL (NLM) - Seventy-two per cent had one or more sexual dysfunction, the most common being premature ejaculation, low sexual desire and erectile dysfunction. The amount of alcohol consumed appeared to be the most significant predictor of developing sexual dysfunction.
Sexual dysfunction is common in patients with alcohol dependence. Heavy drinking proportionately increases the risk. Clinicians need to routinely assess sexual functioning in alcoholic patients so that other factors contributing to sexual dysfunction can be ruled out.