Is it part of God's plan that humanity will sin?

It’s not that I doubted God. But if God is ‘all knowing God’, does it mean it is part of His plan that humanity will sin? So by means, He already know that we will be a stubborn creation? or by not, why did He created us if he already know that we will fail Him at the first place?

Please brethren do not attack me just as like I have encountered so many times in this page. I am just asking because I am curious and I also want to hear it from my fellow brothers and sisters with Christ. Thank you and Bless you in the mighty name of our Lord Jesus Christ.

Aldave Ortinez