Just so I understand this right, not being an expert on US election law, but if someone's party affiliation is switched from Democrat to Republican, it prevents them from voting in the Democrat primaries, but they can still vote for the Democrat candidate in the election proper?