Alcohol can have a sedating effect, making some people feel sleepy or fall asleep sooner. Sleep can still occur after drinking, but faster onset does not mean better sleep.
Alcohol can alter sleep stages and lead to more disrupted sleep later. The pattern depends on dose, timing and the person. Treat it as a possible source of disruption, not a way to guarantee rest.