Not really; attainder occurs when you're convicted by a legislator as opposed to a judge.
But true, attainder is not directly related to kin punishment.