That was certainly the case in early Byzantium, as recorded by Procopius in his Secret History, 11:
After that he (the Emperor Justinian) passed a law forbidding pederasty, not inquiring closely into those acts committed after the passing of the law but seeking out men who had succumbed to this malady some time in the past. The prosecution of these cases was conducted in the most irregular fashion, since the penalty was imposed even when there was no accuser, and the word of a single man or boy, even if he happened to be a slave forced to give evidence most unwillingly against his owner, was accepted as final proof. Men convicted in this way were castrated and paraded through the streets. At first, however, not everyone was treated in this shocking manner, only those who were thought to be either Greens (an athletic/political party) or exceptionally wealthy (so their wealth could be confiscated), or who happened to have offended the rulers in some other way.