We've done this. And let me tell you, working 40 hours a week when your 8-month baby lets you sleep on average 2 hours per night is a lot fucking harder than the 70-hour tech-scene work week. So given the choice, I'll take the former when I'm young and fit for it, and the latter when I'm older and wiser.
Most people in their mid-20s are still growing up.
Alternatively saving a lot of money before you have kids and living frugally by working in a lower cost metro area or renting outside of SF/Palo Alto can work. It's obviously a risk so you and your family has to be on board.