Depends on the state, but in general, no. You register
as a member of the party. You register
with the state. Voter registration information is used to determine who's eligible to vote, and you don't necessarily need to have a party affiliation to be able to vote (I don't, for example).
My guess is that it's public to avoid unfairly preferencing the major parties, so that they give at least lip service to the idea that "anyone can run for office". The U.S. is pretty sensitive about seeming like it has a fair and open political system, even if other aspects of the system mean that in practice a third party doesn't have a snowball's chance in hell.