No it didn't. The responsibility of negative externalities due to petroleum does not belong to the oil companies. It mainly rests on the shoulders of the vast majority of people who demand oil, cheaply and widely available.
Demand for petroleum is not explained by capitalism, but rather by humanity's collective laziness