YES. You earn from all actions, scouting, stealing, and assassinations. The amount you earn is similar to troop earning, more when your spies are higher, and less when they are lower.
OP, in future, ask questions in dillybar's thread it will decrease the amount of threads being locked and the forum mods won't have so much things to bother about. And.. Question answered.
You earn (in the form of endbonus) from all "successful" actions in an EB.
As he pointed out, the endbonus for a successful spy action will depend on your spytroop level.
As a spy build, your plunder will be much higher if you're only skimming your spy troops instead of doing full unloads.