It depends on how much money you have. If you have enough money to buy an apartment or a house, it can be the first step. You buy this house, rent it out, do some basic maintenance and get passive income.
Fewer and fewer people can afford to buy a house now, and you will always have someone who will want to rent your house. I would suggest going for old houses that companies like Flagship Builders renewed. They are way cheaper than the new ones but are good, and you will not have to waste money on any repairing. You will get a basically new house that would look really nice, and lots of people would want to live there.