The lack of oxygen needed for combustion may lead you to believe that bullets couldn’t be propelled in space, but modern ammunition contains its own oxidizer, so guns can still work. However, since there is no air in space to carry sound waves, you would never hear the explosion, and since gravity and friction work completely differently in space, the bullet will likely fly off indefinitely.