That depends. Some smokeless powders have application in both metallic cartridges and shotshells. Examples include Alliant Unique, Alliant Red Dot, Hodgdon Clays and quite a few others. Which ones you can use will depend mostly on the gauge, weight of the shot charge and the velocity you need to achieve. You should consult a loading manual or the online data from manufacturers such as Hodgdon, Alliant and Accurate.
Bottom line: you have not provided anywhere near enough info to get a specific answer.
There are only a couple of rifle powders suitable, fast burning enough
FOR shotshell use. The problem is burn speed. One that works well is 4227.
It does not matter whether you use it in hand guns or rifles or shot guns it will still work.
If your reloading data says you can, yes. You DO have a reloading manual right?