If you do get an extended warranty, make sure it is one that is offered by the car manufacturer itself, not a third party. Even the dealer could be selling third party warranties. And above all, throw away all those offers you get in the USPS mail about extended warranties for your new car.
I like Clark Howard’s take on an extended warranty for your car. Think of it as an insurance product to get you through an unexpected major repair bill that might otherwise leave you without transportation for an extended period of time, because you can’t afford to fix the car. If that scenario is possible, buy the extended warranty to avoid that scenario. But otherwise, if a repair bill would not be devastating and impactful to your ability to produce income, then stay away from them … your expected return is far less than what you paid.