NO, if He had known the devil was going to rebel then He would not have set Lucifer as the anointed cherub that covereth; Oh and this did not happen in this flesh age. But is the reason why we have this flesh age.
We are not told when our soul and spirit intellect were created, and when the Adam was formed he was not alive until the breath of life was breathed into his nostrils. Breath of life means soul.... and we are told that when our flesh dies the soul/spirit returns to the Maker that sent it.
And Paul writes that before ever doing good or evil Jacob He loved and Esau He hated... That simply is NOT possible to hate someone you do not even know, most especially a babe not yet born in the flesh. Romans 9:11-16
OK, many here seem to disagree. Thanks for the answer.