Technically true. However, it should be noted that Dinosaurs got massively lucky on that front. Ice Ages 1 through 4 happened before dinosaurs, and the current ice age happened after their extinction.