Yes, you can. Use the proceeds from your sale to pay the mortgage balance.