Where there mammals during the dinosaur age?

Yes. The first mammals appeared only about ten million years after the first dinosaurs in the Triassic period.