is it a sin?

Today I was asked if lustful thoughts are a sin when it’s something that cannot be helped? It was mentioned that a lustful thought is automatic.
I tend to disagree because I can see a beautiful sexy woman and acknowledge in my mind that she looks good without going there and think "man I would love to hit that!"
thinking is something that I do. And i do it pretty damned well most of the time.
In my opinion, I should be judged on what I do, not what I think.