Yes. Unaffiliated voters cannot vote in Democratic or Republican primaries. One must be a member of the party holding the primary.