--------------
Are you asking to find out if God knows in advance everything that people will do?
In that case, the question then arises; Is his exercise of foreknowledge infinite, without limit?
Does he foresee and foreordain such actions or even predestinate what shall be the final destiny of all of his creatures, even doing so before they have come into existence?
Or, is God's exercise of foreknowledge selective and discretionary, so that whatever he chooses to foresee and foreknow, he does, but what he does not choose to foresee or foreknow, he does not? And, instead of preceding their existence, does God's determination of his creatures' eternal destiny await his judgment of their course of life and of their proved attitude under test?
The answers to these questions must necessarily come to from the Scriptures themselves--and the information they provide concerning God's actions and dealings with his creatures, including what has been revealed through his Son, Christ Jesus. I think 1 Corinthians 2:16 may be food for thought on the subject. It is not a simply 'yes' or 'nertainly God is omnipotent,o' answer to be given, imho, but leads to many other points for consideration on the matter.