can you buy a house while renting an apartment