Question: can you shoot a gun in space?
Answer: Yes. Bullets carry their own oxidising agent in the explosive of the cartridge (which is sealed, anyway) so there's no need for atmospheric oxygen to ignite the propellant.