Moderate drinking is not a known direct cause of hair loss, but heavy or regular drinking can contribute in several indirect ways:
Nutrient deficiencies: alcohol impairs absorption of zinc, iron, folate and B vitamins, all of which matter for hair.
Liver strain: advanced liver disease affects hormone metabolism, including estrogen and testosterone.
Poor sleep and stress: both promote shedding.
Thyroid effects: chronic heavy use can affect thyroid function.
Dehydration and diet: drinking often comes with poor eating.
So it is less "a few beers cause hair loss" and more that heavy drinking creates conditions where hair suffers. If you already have pattern hair loss, cutting back will not reverse it, but it removes one factor that could make shedding worse. Disclosure: I work on the editorial team of an online pharmacy, general information only, not medical advice.