Its not the same warranty with most brands - my current car has a 4-year warranty for almost everything (excludes tires and a few other things that are always excluded), whereas the similar pre-owned models have a 4-year that only covers the engine.
AFAIK for the Hyundai Elantra (the car mentioned and that I bought) it's the same minus the current years and miles on the car.