Sometimes.
First of all, I never drink much in such occasions. A small amount of alcohol can do good things to your brain, as it reduces your urge to skip solutions that are alien to you. Too much alcohol, on the other hand, can damage your ability to work, so never ever do it.
Here are my two rules whenever I do such a thing.
git checkout -b drunk origin/masterIf you think rule number 2 is funny, just think about it. Like it or not, your brain is in a different state than usual. You will probably do things you would never do while being sober. You should obviously let others know what you did.
Finally, the most important rule is rule number 3: donβt become an alcoholic just because you always get positive reviews on work you did this way. Alcohol is dangerous on the long run; I saw it doing undoable damage.