Depending on where you live, you might actually be able to afford a home if a mortgage would be about the same or a little higher than what you currently pay in rent. There are some first-time homebuyer programs that you might be able to take advantage of depending on your personal situation too.
If you're wanting to look into the possibility more, I would recommend attending a first-time homebuyer presentation that your local bank or real estate company probably has. You can also talk to a lender and they can help you assess your financial situation and give you a realistic outlook on whether or not you could buy. If you're going to talk to a lender, just make sure they are experienced with first-time homebuyer programs and have good reviews!