The Word was already with God. The world was made through the Word. The Word was slain before time even begin.Yes so God ordained the adultery of David and Bethsheba so He could be displeased.
God ordained the sin of man in Genesis so He could grieve.
God ordained the wickedness in Nineveh so He could repent of the evil He planned to do if they didn’t turn from their evil ways.
Makes sense to me.
I think God has enough knowledge to know in my hypothetical that if he’s going to ordain that, He already knows I’m going to take the phone away after he picks it up and prevent my son from reading a text while driving if I’m in the truck with him, so if He knows a text needs to get there, He is in enough control to put that text through to my phone.
Was this due to predestination or foreknowledge? Does it really matter? God's plan for salvation(the Word) was already in place before Creation.