Climate change caused by burning fossil fuels is what has the potential to cause a mass starvation, not getting rid of oil where possible. It should be also noted that all fossil fuel is just sun's energy stored in another form, although I can understand some of you Americans may think it was magically created by a god. Why not use that sun's energy directly wherever possible?
There will be no need for fossil fuels in energy generation and transporting stuff. Whatever use cases remain are fairly insignificant in the grand scheme of things, and many of those have alternatives too.