Assuming of course you make an informed purchase of a home given your particular circumstances.
Most homes in the US appreciate in value, unless you live in rural Pennsylvania.
I also believe buying early forces you to be more financially responsible and makes purchasing your first family home later in life a lot easier.
So I always recommend young people to make the sacrifice and buy a place.
Your first home doesn’t need to be your dream home.
My first place was 700 sqf in a very shady area of the city, but it came with sweet tax abatements for several years and the area improved a lot but the time I sold.
There are always opportunities like that in almost every city in America, even in today’s market.