Exaggerated and made up example of what I’m curious about:
My country has legitimate elections. When my government wrongly convicts someone I feel as if I have personally wronged that person by voting for the person who appointed the judge. God will judge both me and the judge for it.
As you sort of suggested in your example, only if I voted for the person who did something wrong (or, I suppose if I were to miss an election and failed to vote against that person).