No. First of all, EVs can run on electricity from any source, i.e. it doesn't matter if it comes from coal/ nuclear or renewables. Thus, they are more flexible, since traditional cars mostly run on gas and would be useless if we run out of it.
Likewise, batteries are made from different materials, so if we did run out of Lithium, I'm sure it would be feasible to use something else.
But in general, they're not a good solution to our transport needs as long as they're owned by individuals and only used for 1-2 hours a day. And we do live on a planet with finite resources, so we'd need to come up with a way to recycle most of the parts of a car in the longer run.