Is it okay to take your shirt off in the gym?

If you’ve got a solid pump going and want to observe yourself working out, is it okay to take your shirt off?

I don’t see any rules against it, but I’ve only see one guy do it at my gym. Seems to be an outlier.