Mortgage debt when debtor dies

If I have a joint mortgage with my wife and my wife passes away. Can her mortgage debt be transferred to me. Rather than any of her other assets being used to pay off the mortgage in full or in part .
Thanks.