In Texas you must register with a party to vote in their primary. Now that doesn’t mean you have to vote for them in the general election. Quite often I’ve registered Republican to try and influence the primary since I’ll vote for whichever Democrat makes it past the primary.