According to Bible there are some things that happened in the world that didn't even come into God's mind.
"And they built the high places of Baal, which are in the valley of the son of Hinnom, to cause their sons and their daughters to pass through the fire unto Molech; which I commanded them not, neither came it into my mind, that they should do this abomination, to cause Judah to sin." - Jeremiah 32:35
So at least the Bible is teaching clearly that everything that exists is not always God's will or his invention.