Yes. Technically, you declare a party preference. With our current system of open primaries, the only difference it makes is that you can vote for local party committees, and in the Presidential primary for that party. Independent voters can request a ballot for a particular party, but some parties (notably the GOP) restrict their ballots to those registered with that party, which they are allowed to do under California law.

// @skematica