Some powders are perfectly good for both shotgun and pistol.
In a pinch, and with trial and error, I’m sure a lot of things would work just fine. Just dropping any old flammable substance into a cartridge is a REALLY bad idea.