FWIW, many people work up 9mm and .40 loads with small rifle primers for the thicker primer cups. As long as you realize the pressures will be greater, so loads need to be worked up from a lower powder charge, they will be fine.
I would not use them in softball loads like .38 special wadcutters, but for the 9mm and .40 you mention they will do fine.