It is the Lamb that was predestinated to be slain, from the foundation of the world.

There is a true predestination of God's Divine plan; but it doesn't conflict with the truth found everywhere in the word that "whosoever will may come".