Yes, but you have a few misconceptions. It wasn't two of every animal. It was animal "kinds". A kind might be thought of as a species. For example a wolf might be a canine "kind". These "kinds" then diversified into the forms we have today. Also some animals could survive without being on the ark...amphibians, many types of insects, etc etc could survive a flood.
There's many other suppositions that you've got wrong but this is just for starters...
Creationist theories about creation of the fossil record during the flood posit floodwater conditions that would kill anything in the water.