Yes. The Supreme Court has upheld that right. That is why Top Two nonpartisan primaries are so crucial. In a Top Two system, the primary is not about selecting party nominees, it is about all the voters participating in a process of determining which candidates advance to the general election. The parties are private organizations and are free to do that however they choose and with their own, not the taxpayers, funds.