Are evil thoughts a sin?

Tags: #<Tag:0x00007f2779b7d548>

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?