Gospel vs Sin | Which Came First In The Mind Of God?

Psalm 78
Joel Webbon

Is the Gospel merely God’s spontaneous reaction to the first sin in the Garden? Or were the Gospel, as well as the Fall, always God’s plan? We’re these things decreed long before the foundations of the world were laid?