It can work both ways. I register as nonpartisan so I can choose either ballot. I live in the valley were only Republicans are elected. I choose the Republican ballot in the primary election so I can vote for the lesser of two evils, if there are more than one Republican running for the position.