I am female and bought a home in my 30s. It's fine. I spent many years thinking I would leave a certain metro and then never did, so I bought.
If you meet someone, you can sell or rent it out. It's not as big of a commitment as people make it out to be.