Yes, in fact, many people buy life insurance that will pay off the amount owed on their home mortgage loan should they pass away before the mortgage is fully repaid.
This is referred to as "mortgage life insurance" since the mortgage is what you intend to protect with your life insurance policy.
By purchasing life insurance to pay off your mortgage loan you can help make sure your loved ones can remain in the home they shared with you.
You'll want to select a term life insurance policy with a "term" (duration) that is equal to the length of years you have left to pay for your home mortgage loan.
And, select an amount of life insurance equal to the remaining balance on your home mortgage loan.
That way, the life insurance plan will remain "In Force" the entire time you have a home mortgage loan and have enough coverage to fully repay the loan. Learn more about life insurance on mortgage balance.