Yes, if you have any outstanding loan repayment, then you must consider the EMIs as well while deciding the sum assured. This way, your family will be able to pay the monthly instalments on time without any trouble.