Christian greetings,
Good question, hopefully, you ask for the right reasons. Yes and no. God is indeed omniscient aka "all knowing", however, he chooses to limit his foresight aspect in regard to some future events. Some ignorant Christians often shun this Idea as they believe it limits God ...