Not exactly. Whether the card is stamped with "Republican" or "Democrat" we can still vote in either primary.
You have a new voting card before every primary. When you vote, either Republican or Democrat primary, the name of the party is stamped on the voter card. If there is a run-off after the primary, you must vote in the run-off according to the stamp on your card. An election worker checks your card to be sure you are in the right run-off election, plus they have pary affiliation now stamped on the sheets they are using.
In the general election, both parties are on the ballot and you may vote for whomever you wish.
Two years later, at the next primary, you may again choose whether to vote in the Republican or Democrat primary election. Whichever you choose makes you one until the next primary election.