True if you buy a car in a private sale. But if you buy a car from a regulated professional dealer and it turns out to be stolen then things get a little bit more complicated than just you have to give it back. I would expect in that situation that the dealer makes everyone good (and possibly goes to prison).