The answer to the question is absolutely Yes ! All things are made or created for God's good pleasure Rev 4:11
11 Thou art worthy, O Lord, to receive glory and honour and power: for thou hast created all things, and for thy pleasure they are and were created.
If we believe in the True and Living God, then we ought know He is the First Cause of all causes.
He created the devil for His Pleasure and ordained his activities, He created Adam for His pleasure and ordained his activities and the subsequent consequences.
From the time God said this Gen 1:1-3
In the beginning God created the heaven and the earth.
2 And the earth was without form, and void; and darkness was upon the face of the deep. And the Spirit of God moved upon the face of the waters.
3 And God said, Let there be light: and there was light.
It put into effect this Eph 1:11
In whom also we have obtained an inheritance, being predestinated according to the purpose of him who worketh all things after the counsel of his own will:
If we do not believe this, rest in this, and we do debate it, reject it, we are no better off than an athiest ! We are as David wrote Ps 14:1
The fool hath said in his heart, There is no God. They are corrupt, they have done abominable works, there is none that doeth good.
No, It is also written :"When tempted, no one should say, “God is tempting me.†For God cannot be tempted by evil, nor does he tempt anyone; 14 but each one is tempted when, by his own evil desire, he is dragged away and enticed. 15 Then, after desire has conceived, it gives birth to sin; and sin, when it is full-grown, gives birth to death."
God sows the good seed. His enemies sow the weeds.