Absolutely. It's to avoid this kind of nonsense that we need to be vigilant regarding the law and the actions of the police.
Is is recommended that we scrutinise mental acts, and some are certainly labelled as unskilful or unwholesome, but that's very different from them being thought crimes. They are subject to the objective laws of kamma rather than the prescriptive laws of a country or organisation.I'm refering to mental actions being as much subject to one's own scrutiny as one's verbal and physical actions. One can, for example, transgress the precepts only mentally, but those are still transgressions.
I've not seen reference to mental transgression of the precepts in the canon. Sometimes the ten forms of wholesome conduct coincide with keeping particular precepts, but I don't think the 5 lay person's precepts are transgressed unless there is the particular action (i.e. the killing, the stealing, the proscribed sexual activity, the lying, and the consumption) committed. One can, for example, really want to drink alcohol, but providing one doesn't give in to the urge, the precept is not broken.