Yes.
and three days later rose from the grave?
I don't know, but if I had to pick yes or no, I lean to yes.
The Father and the Son agreed on this course of action before the foundation of the world. Jesus was killed for you and I, that we might escape the terrible penalty of our own disobedience and enjoy an eternity with Him in Heaven.
God is holy and righteous, and sin is not permitted in His presence. That is why those who reject the gift of Jesus Christ's salvation cannot be permitted into Heaven. Without the covering provided by the only begotten Son of God, we stand naked and alone in the presence of Almighty God and must plead our case the merits. Jesus Christ of Nazareth will stand in the gap for those who have sought His forgiveness and have accepted Him as their Lord and Savior. Without Jesus, we have only ourselves and our own filthiness to present to God.