Yes. Actually, you can buy life insurance to leave death benefits to your beneficiary to pay off any loan you choose.
For example, you could buy mortgage payoff life insurance that pays out a death benefit upon your passing.
Your beneficiary could use the proceeds from your life insurance to pay off your outstanding balance on your home mortgage loan, so your family can remain in the home they shared with you.
Learn more about loan pay off insurance plans.