While they are very flexible, there are specific legal and structural exceptions:

They will buy cars that don’t run, though you must arrange to have them towed to a CarMax location for an appraisal. Key Exceptions and Limitations

Higher-quality, newer cars that meet their strict reconditioning standards are sold on their lots.