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.
You sure about that? I would say that Judaism accepts the story of Noah and the account of the wickedness that existed. This verse sure would indicate that God was judging people by more than just their actions.
Genesis 6:5 And God saw that the wickedness of man was great in the earth, and that every imagination of the thoughts of his heart was only evil continually.