What Happens To The Mortgage On A House That Is Left To Me In A Will?

A relative will be leaving me a house in their will. If there is a mortgage (home equity) on the house when they die, do I take over the mortgage? I intend on selling the house when it is left to me.