Yes. You must get permission from your mortgage lender and they may impose particular conditions. If you are buying a property with the aim of letting it, you may be able to opt for a buy to let mortgage.