Not necessarily. General Petraeus purposely handed over documents to his biographer / girlfriend, and he got nothing more than a slap on the wrist.
It seems again to be a high court / low court thing. If you're important enough, your crimes get you lesser sentences, but if not, they throw the book at you.