If you have messed up thoughts that you wouldn't act on, does it matter that you have them?
There can be no thought crimes, or all freedom is lost.
Self control is what matters
No, we are all human and we have bad thoughts sometimes. If those thoughts are urging you to act, you need help.
It matters in that you should seek professional help. You never know when those thoughts could become overpowering and you might act on them.