That is what everyone means when they say "run out of oil". Read it as "run out of oil worth extracting". We're obviously not going to spend 2 TJ of energy to extract oil that contains 1 TJ of energy.
And even then, who knows whether dumping spare electricity into oil wells instead of e.g. batteries or pumped storage hydroelectricity might remain profitable.
My point is, it's not necessarily that obvious, and we better not wait for people to stop running out of ideas to make a profit on fossil fuels.