I agree that God can do whatever He pleases, that is, what ever pleases Him.
But we must understand that any such "whatever" is tempered by His essential nature and attributes.
God is holy, rightoues, true. God is love, just, and impartial. He is a God of equity, mercy, and grace.
Nothing that He would desire could impinge on His essential nature and attributes.
Is God sovereign? You bet. Is God capricious, arbitrary, and partial? To be so in any sense would violate His essence.
Let me ask you a question. Would it impinge on God's sovereignty to create humans in His likeness and image?
Would it violate His sovereignty to give man latitude and freedom to rebel from Him or respond to His wooing and drawing?
Can you consider, rationally and logically, that if God has "ordained" all things "that has ever happened or will happen" as some have suggested, this must include all forms of sin and evil: adulteries, murders, incest, rape, pedaphilia, homosexuality, brutality, matricide and patricide, genocide, etc?
Such a thought is only feasible to someone who has bought into a heavily-stacked, lop-sided, and unbalanced understanding of the bible. God forbid that He ordain pedaphilia!
To consider God ordaining that which He finds abominable may be in vogue in various theological circles, but it offends the God given conscious and Scriptural witness that God is Holy, good, righteous, and light (not to mention love!).
Any view of God's sovereignty that has God necessitating men's abominations by His "fore-ordination" and "predestination" should be obviously rejected.
But what has happened is that some theologies have become like secret societies where the initiated slowly become indoctrinated to the point that they will believe things that go against all reason. Such attitudes are taught and not formed.