Yes, and with his infinite power and wisdom, God created the earth with approximately 4,000 years of farming baked in. Also he put dinosaur bones in places, to spice things up. It makes perfect sense if you posit an omnipotent being whose ineffable goals revolve around testing whether or not we think he exists.