No, Jesus was not actually in danger of sinning when Satan tempted him. Jesus had a divine nature which could not sin, but his human nature suffered. The Bible says, "For in that He Himself has suffered, being tempted, He is able to aid those who are tempted." (Hebrews 2:18)