No. It's been taken out of context. Centuries earlier, in Psalm 22 King David wrote "Why hast you forsaken me". Then, while Jesus was on the cross He remembered King David's words from Psalm 22 and used it for a different purpose Like when a preacher today says, “Remember the words of
Psalm 22.” As Jesus took on Himself the sins of all humankind, He acknowledged feeling abandoned by the Father, yet, like David, He still trusted in God. He knew that He was
fulfilling God’s purpose by laying down His life: “God made him who had no sin to be sin for us, so that in him we might become the righteousness of God” (
2 Corinthians 5:21). Jesus believed that God would not forsake Him in that endeavor.
“
My God, my God, why have you forsaken me?” With these words, Jesus also beckoned His followers to make the connection and recognize
Psalm 22’s prophetic implications. David had seen down through history to vividly portray the Messiah’s crucifixion (see verses 7, 14–18). Thus, in calling attention to the psalm, Jesus showed once again that He Himself was the fulfillment of Old Testament Scripture.
Click on highlighted blue for further information for clarity if you want.