Yes.  Trading a car on a lease is done the same way as trading a car on a purchase.