Great question, that, in the headline. The smartest theologians and philosophers in every age for the past 2,000+ years (and more recently, physicists and mathematicians) have tried to figure how human beings can have free will in a universe in which everything is predestined by God.
At the very least, that proposition appears to violate the basic rule of logic, the Principle of Non-Contradiction — That which is A cannot also be Not-A. If people can choose as they wish, then God can’t be determining their choice.
NBC “Dateline” cold-case detective J. Warner Wallace was asked about this during a recent presentation at Ohio State University. In response, Wallace explains why free will and materialism are similarly opposed but there is at least the logical possibility of a solution in a universe created by God.