You are permitted to rent your house out if you have a mortgage.
However, it is crucial that you inform the lender of these arrangements as a failure to do so will mean you are in breach of the terms and conditions of the mortgage.
When you inform your lender they might suggest a buy-to-let mortgage. These have higher rates than residential mortgages because it is considered that there is a greater threat to repayment.