Yes. Malts like 2 and 6 row are base malts. There's many varieties of base malts, such as Pilsner, American 2 row, Vienna, Maris Otter, etc. Grains like caramel malts (crystal, cara-anything, etc.), chocolate, black, etc. are specialty malts. The main bulk of your grain bill will be some sort of base malt, either one or a mix of varieties, and your specialty grains will make up the rest (say ~20%, give or take) of the grist (grains in the mash).
You base what type of grains you're using on the style of beer you're trying to make. Say for a basic American IPA, I would go ~85% American 2 row, ~5% Munich or Vienna and about ~10% light caramel/crystal malt. Other styles will use different malts, base and specialty, and in differing amounts based on style.