In most cases I would say NO, but it does depend on a few factors. (1) How long do you plan on keeping it? (2) What is your financial position if something breaks? (3) What kind of deal you can negotiate on the warranty.
I was really torn on this when we bought our Leaf. I wound up buying the warranty but ground the dealer big time on it. Wound up getting the 100K warranty for under $1000, which I thought was fair. They started at $1750 for the 80K one! At that point I thought I'd keep the leaf till 100K miles, now I know that I won't. My main thought process going into the warranty question was that unlike my ICE car, where I can take it to my trusted mechanic and not get ripped off, with an EV, I have no other option than the Nissan dealer for service. If there's one thing I learned, its that your car dealer will rip you off on repairs. The odds of the Leaf having a major problem are pretty low, but in the case that it does, the warranty will likely be worth it. They said that I could get a refund for the unused portion, if I sold it back afterward, so when it comes to sell the car, I'll check on how much that equates to and when someone wants to buy the used Leaf from me, take that into account.
Then again, maybe I shouldn't have bought it.