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.
Of course, that's no guarantee - I belong to a religion where dating is a thing, and we believe marriage can be eternal, so there is a big emphasis on dating. And during my college years I was in an apartment of 6 and it seemed like every semester I'd have an engaged roommate - and I went on lots a dates, but didn't get married until I graduated.
So, yeah, go on lots of dates, and you might get married early. If not, don't sweat it. Just make sure you marry somebody who will work to have a good marriage.
note: I (and my culture) are definitely outliers - we tend to go through the courtship process relatively fast - I married my wife about 9 months after first meeting her.
I think it's really dependent on personal maturity. My wife-to-be and I both knew what we wanted families, so we looked at our financial situation, and decided we could responsibly get married while I was still in college. A couple generations ago, that was pretty normal. Not so much now, but that doesn't make it impossible.
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.