Yes, it will fire in space. The powder contains the fuel and the oxygen to burn it. One more neat thing about shooting it in space. Muzzle velocity is the same as terminal velocity, even if the target is a gazillion light years away! It would, however, be nice and quiet. Only a bit of noise in space. There would be noise in the cloud of gas emitted from the gun, but nowhere else.