Yes, Jesus did know in advance that He would be arrested and brought to trial before the Roman governor , and that this would lead to His execution.
In fact, long before His final journey to Jerusalem, Jesus repeatedly warned His disciples that He would be executed by the Roman authorities, but then would be raised to life by the power of God. His disciples, however, didn’t understand or believe what He was saying until afterward. But Jesus had no doubt what the future held for Him; the Bible says, “From that time on Jesus began to explain … that he must be killed and on the third day be raised to life” (Matthew 16:21).
Why didn’t He flee, or at least try to avoid this? The reason was because He knew God had sent Him into the world for one reason: to become the final and complete sacrifice for our sins through His death on the cross. Sin is an offense to God, and it separates us from Him and His blessings. The eventual outcome of sin is death and Hell and judgment.
But God loves us, and He doesn’t want us to be poisoned by sin’s hold on us. That’s why He came down to earth in the person of His Son, Jesus Christ. Jesus was without sin, but on the cross all our sins were placed on Him, and He died in our place. Have you ever thanked Jesus for not dodging the agony and shame of the cross, but instead giving His life for you? By faith open your heart and life to Him today.