That doesn't matter. Drug dealers, hitmen, prostitutes, etc. go to jail all the time even though its their job.
So.. same thing?
Drug dealers do it for themselves, and the CIA - who were they dealing drugs for again? The state? They were giving the proceeds of crime back to the US government?