Yes, it is. Owning a house is owning a vital commodity. When you have your own home, you can be sure that you will have a place to come back to.
Also, real estate is always rising in terms of demand and price, and you can sell it at a later date or put it out for lease when you need money.
A house is an excellent store of value, and the land by which it stands itself is a worthy investment. You can pass on your property as an inheritance or sell it out when you retire.