"Do unto others as you would have others do unto you."
Cheating in any circumstance is morally wrong.
When someone catches you cheating, they don't punish you for fun, they punish you to teach you that cheating was wrong, so you wouldn't make that mistake again.
So, in all cases, whether you were to be caught or not, cheating is wrong.

