Yes, it's called mortgage life insurance and it pays out a death benefit to your beneficiary upon your death.
The beneficiary can use the money to pay off the remaining balance owed on your home mortgage loan.
Usually, mortgage life insurance plans are term life insurance lasting for the duration of your mortgage loan.
So, if you have a 30-year mortgage, you would purchase a 30 year term life policy, with an amount of life insurance equal to the amount you currently owe on your home mortgage loan.
Here's how to buy death insurance for your home loan.