A new car, whether you buy it online or in person, typically comes with an original manufacturer's (OEM) warranty. Used cars sometimes come with
extended car warranties
or are part of a certified pre-owned program, which is similar to an extended warranty.
However, if buying from an individual or an online auction, the chances of a warranty being included are slim. Again, ask about warranties in advance and do your research on the vehicle and car buying site before making a purchase.