Yes, you can sell an inherited house with a mortgage. The mortgage balance will be paid off from the proceeds of the sale, and any remaining funds will be distributed among the heirs.