sorry youre way off , you should own 2 houses one that you live in the other you rent out
I thought you meant buy a house to live in as an investment.
If you want to be a real estate investor, then by all means buy not just one but as many rental properties as you can. You better know what you are doing though. And don't be fooled, real estate investing is owning and running a business and it carries its own set of risks.
I know a good number of multimillionaire, long time real estate investors who are actually selling all of their properties now and getting out. The outrageous home prices and new laws pandering to deadbeat renters while vilifying landlords make this move a no brainer to them. They plan to reinvest cash from selling all those properties in index funds and in real estate syndications which are much more passive.
Some people prefer to be passive investors and stick only to index funds and cash, maybe even real estate syndications. For them one house to live in, or no house at all is plenty.