Have to say I disagree with @Jason Turgeon. You’re 24. Time is on your side. If I had the sense to start buying property at your age, I would probably be well into double digit doors by now or already own larger multifamilies. I wish Somebody had pulled me aside back then and showed me the light.
Take advantage of the time value of money and by the time you’re 30-something you could be well on your way to a portfolio that gives you financial freedom. You can still live below your means and put tax free savings into your 401(k), but that’s really just government subsidized savings, not investing. (You can make it into a true investment later by borrowing against the balance to buy other cash flowing assets like real estate.)
If you haven’t already read it, check out Rich Dad, Poor Dad. I discovered it in my 30s, and wish it had been given to me years earlier. That book will help you distinguish between a true asset vs liability, and set you down the path.