In an absolute sense, it is not accurate to say that God can do anything.
And here's why.
Because the Bible says that God cannot lie.
So the idea that God can do anything is not biblical, but what the Bible does say
is that God is omnipotent.
And omnipotent means all powerful.
So God is all powerful.
God has all power and all ability, but God cannot lie.
First of all, the Bible says in hope of eternal life, which God that cannot lie promised before
the world began.
It also says in Hebrews chapter 6 that by two immutable things in which it was impossible
for God to lie.
It also says if we deny, the Bible also says if we believe not, yet he abideth faithful,
he cannot deny himself.
So there are things that God cannot do.
He cannot lie.
He cannot do anything wrong.
He cannot do anything unrighteous because he is light and in him is no darkness at all.
So God is limited to what he has said he would do in his word.
He's not going to break his promise.
He's not going to tell lies.
But he can do everything that was just listed is what Job 42 verse 2 is saying.