My first question is, why? Second, are you taking pain medication? It is important to be hydrated and alcohol acts as a diuretic so I would not recommend drinking this soon after surgery. Additionally, anesthesia does have some long term effects and I do not see a reason to exacerbate these or put you in a situation in which you might be more prone to slip or fall so soon after surgery.
The short answer is "yes;" the longer answer is "everything in moderation." The most important thing is to stay hydrated and to walk around a lot to avoid a blood clot. Alcohol is a diuretic (makes you pee) which can increase the risk of bloot clots so don't drink a lot of booze and follow any alcoholic drink with two cups of water.