I definitely agree people's values are influenced by the people they spend time with.
We sketch some of the evidence for that here:
https://80000hours.org/articles/career-capital-in-any-job/#w...
It's just I think there's things you can do to counteract this problem, so it's not a decisive point against earning to give.