Some leaders have tons of credibility capital banked away, so they can afford to freelance on the side. But freelancing is a luxury. Spend too much on that and you’ll fail at your main job.
But god forbid some computer programmer says something Americans don't agree with.
Depends on the things.
Remain President and play golf? Sure.
Remain a spokesman for free software and repeatedly and publicly expound on your belief that pedophilia isn't harmful, and that children are capable of sexual consent? Yes, apparently.
That, and then toss a match on the PR tinderbox that is MIT's involvement with Jeffrey Epstein with a tediously legalistic argument over the definition of sexual assault which appears to the rest of the world to be an attempt to defend Marvin Minsky's alleged involvement in child sex trafficking? No. Turns out that's the straw that breaks the camel's back.