No. The reason why Silicon Valley works is because of the intense greed that it provokes amongst everyone that comes here. Maybe "greed" is too strong of a word, because people aren't necessarily selfish, maybe "money-focused" is probably more accurate. And because anyone can come here and become a millionaire/billionaire, it draws in an immense number of hard-working people which just generally increase the level of…
It's a really radical transition, but I really, really dislike the city-centric focus of software engineering. I hate the idea of being a contractor (I just want stable, life-long work), and I can't tell you how tired I am of crippling traffic causing me not to even want to drop by the grocery store until it's almost time for it to close. I'm not in the Bay Area, but am in one of the five largest cities in the US. I went to college not giving a shit about money or how much of it I would make, and now I find myself thinking about it most days because I have to confront the fact that I can't afford any housing near where I work. I wouldn't be so upset about it if it weren't for the traffic which makes commuting from far out an absolute nightmare.
In terms of raw numbers, it's a transition that doesn't really make sense, not for a relatively skilled developer anyway. The salaries aren't that much higher outside of surgery and a few ultra-competitive specialties, and the time and debt involved in the training are immense. Depending on any number of factors, it could be better or worse than a life in technology. The two things that are for sure are that you're not going to have financial difficulties and you're not going to be subjected to ageism (quite the opposite). If you want to be rich, medicine's probably a pretty bad choice; but if you want stable, well-paid, life-long, rewarding employment wherever you want in the country, it's among the very best options.
The most amazing part of it is that you get to directly help people every day (so you don't have to wonder if your crazy ass startup is actually "changing the world" or not), there's more demand for doctors in rural areas (not less), and most non-surgical specialties can easily work comfortably into their mid-60s (or even later, health permitting). You're also surrounded by people who, at least in the beginning, were motivated out of passion and not money- and status-seeking. (Of course, some people will change as they age and grow more successful, but not all.)