That’s a good plan, and if you’re young and can handle the maintenance yourself, should work: as long as you don’t have complete animals that thrash your stuff!
One of my main requirements when buying a property is that it’s a place I would want to live in.
Because of that requirement I’m able to get good tenants. I’ve dealt with inner city rentals before - it’s too much work.