Depends what you do in the gym. Run on a treadmill or other cardio? Can't see the harm. Small weights with high reps? Why not. Try that low-rep press of that super heavy weight that you can barely do even once? Probably a bad idea if you are in any way intoxicated. Play squash and smash your friend's nose with your out of control raquet? Avoid avoid avoid.
In short I think you're fine in the gym if you can do it, so long as if you've had a few drinks you avoid any activity that could be dangerous, like working with heavier weights, or anything where you could hurt someone else if you messed up.