can you buy an apartment unit instead of renting