Question: how soon can you sell a car you just bought?
Answer: There is no law against selling your car after you buy it. You could walk out of the dealership, walk right back in and sell it if you wanted. Bear in mind that if you took out a loan, you might have a prepayment penalty. The only way to know if you have a prepayment penalty is to look at your loan agreement.