Yes, you can list your home and sell it up until the trustee sale. You can also negotiate with your lender to change the terms of your loan if you want to keep the home and you can afford it. A qualified loss mitigation consultant can also negotiate on your behalf and in some cases modify the terms of your loan. Be wary of paying up-front fees for this service.
Your existing lender may also accept less than the existing balance of your loan. If you find a buyer, you may be able to arrange a short sale where the lender accepts less than the amount that you owe and forgives the difference.
There are important tax consequences of this type of transaction and you must consult a qualified tax adviser to be aware of all the consequences.