Yes. You'll need to tell CarMax about your loan so it can pay off the lender. If you owe more than you can give, you must pay the gap.