Has God predetermined every detail in the universe, including sin?

Has God predetermined every detail in the universe, including sin?