Are evil thoughts a sin?

Have you ever wondered, am I accountable to God for my thoughts? Can thoughts be sins? Can my evil thoughts and imaginations be controlled?
Every genuine Christian struggles with having evil thoughts, and many have felt powerless in tackling them. Whether its thoughts of anger, lust, or deceit, this is a very real issue for us all. Is there a solution in the Bible?

What are your thoughts on this subject?