The bible records the story of the LORD leading the Israelites, using His servant Moses, out of Egypt. The LORD inflicted a total of 10 plagues on Egypt before pharaoh agreed to let the Israelites go. The 10th plague was the death of the firstborn, including the firstborn of Pharaoh, in the land. But when one reads the passage closely, one will notice that even before Moses went to speak to Pharaoh, the LORD had already told him about the death of the firstborn.
Then say to Pharaoh, ‘This is what the LORD says: Israel is my firstborn son, and I told you, “Let my son go, so he may worship me.” But you refused to let him go; so I will kill your firstborn son.'” [Exodus 4:22-23]
I believe this shows clearly the LORD knew what would happen and had made plans for it. And indeed the events that took place later really reached the stage where the firstborn in the land, including that of Pharaoh, died. It is the same case today. The LORD knows what will happen to this universe, including the endpoint of the path we are taking now. He is in control.