I suggest that it is possible Jesus could have led people to believe he was the Messiah and performed a resurrection like a magician to solidify the ideas he taught.
Though, I am doubtful that Jesus outright proclaimed to be the Son of God*, he did certainly want people to draw that conclusion. Does this make him a liar?
Are there examples of lies that are used for the greater good of society, or are all lies evil?
Are undercover police officers evil for deceiving criminals in order to help prevent them from harming society more than they already have?
Something to consider.
* for the most part, Jesus tends to avoid outright proclamation of being the Son of God except in the Gospel of John and in some translations of Luke 22:70.