That's as incorrect as the idea of dinosaurs and cavemen living in the same era. Dinosaurs had nothing at all to do with it. Simplistically, oil was created when dead plankton and algae settled into vast beds of mud, turned into liquid hydrocarbons, and the mud became shale.