I'd disagree with that. Most companies in San Francisco/Bay Area pay salaries that more than make up for the increase in cost of living. I used to work at a startup before it was acquired by Google and my salary back then was more than enough for me to pay rent, travel around, eat out at nice restaurants every other day and engage in an unhealthy level of consumerism and still save thousands of dollars each month. Meanwhile, I had friends in Sacramento making ~$80k a year telling me how crazy I was for 'moving to such an expensive city', even though I was saving more money than they could.
Besides, as I said elsewhere, the benefits of living in the Bay Area aren't just that you may make more money, but how quickly you can advance your career. If you wanted to be making the big bucks in any of the big companies, working for a couple of years in the Bay Area will give you a much bigger chance of getting your foot in the door than working for 10 years anywhere else.