Yes, you can drink alcohol while on the keto diet, but it is crucial to choose the right types of alcoholic beverages. Hard liquors like vodka, tequila, gin, and whiskey are generally low in carbohydrates and can be consumed in moderation without significantly affecting ketosis.