Again, it comes back to the balance and moderation concept - if your diet overall focuses on healthy, whole foods most of the time, there's no reason why you can't occasionally indulge.
If you like a glass of wine in the evening, have it with dinner — around 6 p.m. rather than 11 — and drink in moderation, so it'll wear off by the time you lie down.