You can use primers in about any case they fit, HOWEVER, you have to tailor your load for the primer, case, powder, bullet, and firearm you are shooting them in. Lots of "Pistols" fire "Rifle" ammunition. About 125 years ago, there were manufacturers that made ammunition to work in both rifles and pistols. The 45LC, 32-20, 38-40, 44-40 etc were chambered in rifles and revolvers so the loads were tailored to work well in either one. These were basically "pistol" loads that were shot in rifles.
Over the last 40-50 years, many "pistols" have been made to shoot what once were considered "rifle only" calibers. I won't go into detail on this, but I would bet about any sporting goods store with a well stocked gun inventory will have rifles and pistols chambered in .223, 22 Hornet, 410 shotgun, etc. Modern ammunition makers also tailor their loads to work well in either rifle or pistol, however, due to our litigious society, many loads have written cautions on the label regarding what firearm they should be fired in, or more importantly, what firearm NOT to fire them in. Most of the makers of ammunition components include reloading data for both rifle and pistols, HOWEVER, they tailor their load specifically for one, or the other.....Once in a while you will see comments in the reloading manual similar to "Also safe to fire in ....." Still, each of the recipes indicate which primer they are using with the powder, and they all caution you to work up. So, to say it again, you can use primers in about any case they will fit in, HOWEVER, you have to tailor your load for the primer, case, powder, and bullet combination your are using for your firearm.
Good luck, and stay safe.