Wondering if it the right time to buy?

The title, right now me and my partners saveings are down,I'm haveing surgery later in the year, but rent keeps going up as of now most of the homes we are looking at the mortgage would be less then the rent on an apartment. I'm torn I'm not sure if it's the right time to buy the few homes we have toured have also had big issues or whetr rented out and given the landlord special for a while so they'd all need some work.