2 mortgages

I have two mortgages on my house. The first mortgage belongs to one lender while the 2nd belongs to a different lender. Can I still opt for deed-in-lieu of foreclosure having 2 mortgages?