Yeah. It's also perfectly OK to code outside of work. It's still "having a life" but it's my life and therefore my choice.
Except everyone is. The people calling us "nerds" having "no life" only recently shut up, and that's because they see how much money this occupation nets and now are silently jealous. But if some of them asks you "what are you up to this weekend", and you say "coding $sideproject", they'll look at you weird.
That's all on top of the social pressure to "not be on the computer so much".