Not according to Jesus
Matthew 5:28 But I say unto you, That whosoever looketh on a woman to lust after her hath committed adultery with her already in his heart.
Yes, but in Judaism, for example, one is judged by one's actions and not by one's thoughts. I , myself, would have a bit of a hard time condemning people only for what theyre thinking.