Do You Have to Vote for the Party You're Registered With?

In general elections, you can vote for a candidate from any party. But in primary elections, your state may require you to vote for a candidate from your party.