Is a Bad Thought a Sin?

 A bad thought is not a sin. But it is harmful in terms of personality development. If a bad thought comes occasionally then it is not harmful, but if someone starts to live in it, then it is harmful for personality development.