Anecdotally though, I've met plenty of coders who did this to themselves by refusing to learn more about the domain or the business.
They basically silo'd themselves, then wondered why their colleagues didn't treat them as an integral part of the team when they couldn't speak the language or understand the concerns.
Taught myself enough stochastic calc to change and validate pricing models while on the job.
Coders who understand their domain well are immensely valuable, and are easily worth at least 3x, because they don't over- or under-engineer a solution, and because they can conjure up with technological solutions for problems that nobody else in the company can even conceive of.