Yes, generally you can rent out your apartment after you buy it. You will also be responsible for paying taxes on the rental income. Check with local laws and regulations in case they have any restrictions.