Sure, but I'm arguing that they were mainly there to tie up counter-intelligence resources.
We rarely captured the spies who actually stole damaging information. Of the few notable ones that were caught, most weren't running around rallies in Che t-shirts. They were milquetoast, stodgy coots who lived in suburbia.
The CIA et al did eventually catch on to the personality traits and personal situations that make for a compromiseable target. But they clearly spent decades chasing their tail before figuring it out.