It is revealed in the Bible that God knows the end from the beginning. He knew from the beginning that His creation(man) will disobey.He knew that His Son Jesus Christ will be sacrificed to redeem mankind. The Bible even prophesied that even His Son will be rejected by His chosen people.
But God still went ahead with His creation. I believe because of His Sovereignty. He revealed through His prophets that there will be new heavens and new earth. But who will reside in His new heaven and new earth? I believe those who believe and trust in His Son Jesus Christ,. Those who are elect and regenerated by the Holy Spirit. But who are the elect ? Those who respond to the call of God in their lives.
God choose first. God calls first. He knew who will respond.