can you shoot a gun in space?
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.