Answer:

And God made the beast of the earth according to its kind . . . . And God saw that it was good. Then God said, “Let Us make man in Our image, according to Our likeness,” . . . . Then God saw everything that He had made, and indeed it was very good. So the evening and the morning were the sixth day (Genesis 1:25, 26, 31)

Genesis 10:9, 8:19

Dinosaurs and people living together? That is really hard to imagine, isn’t it, Jim? Actually, it is not hard to imagine if we are Christians who believe God’s Word. Look at our Bible verses. God’s Word tells us that dinosaurs (beasts of the earth) and man (Adam and Eve) were actually made on the very same 24-hour day. They were all created on Day 6 of Creation Week. And, it is true that dinosaurs are older than people—but by only a few hours, not millions of years! So, what is the answer to your question? Yes! Dinosaurs lived with people—before the Flood, on Noah’s ark with Noah and his family, and after the Flood. God’s Word also describes what I believe was a dinosaur. In the book of Job, the animal called Behemoth is described, and it sure seems to be a unique, dinosaur-like animal (like a large Sauropod), living right there with Job and the people of that time!

Source: https://answersingenesis.org/kids/dinosaurs/were-there-people-alive-when-dinosaurs-roamed-the-earth/