Can you sell your car to a buyer and use the money you make to pay off the bank for what is still owed on the car?

If the buyer knows what you intend to do. Any smart buyer is going to want to look at a clear title before he/she makes any kind of payment to you. It is something you can't hide from the purchaser, but you can hide it from the bank.