No, it's in fact only led to expansion of the sector.
New pipelines, new extraction, new shipping routes, etc.
Yes in some countries it led to a burst in EV purchases, but not everywhere.