Not at all. Jesus is God who is the one who has all knowledge of good and evil.
And as God He would not have sinned against or broken His own command.