In most, if not all states it is legal to sell a motor vehicle without getting it inspected. Most people won't buy a vehicle until it is inspected - but you have to get it inspected before a state will issue registration or tags for the vehicle.
What can I do if I bought a car from a dealer and after buying it I take it to get it inspected, but it doesnt pass.
You can sell anything that is legal, and as far as it not passing inspection, lots of old classic cars do not pass or run.... but they are selling like hotcakes!!!!! In fact I am looking for a 69 camaro z-28