Yes, you can fire a gun underwater with the proper precautions in place. Gunpowder contains oxygen, which is a key element in the firing process. Make sure to wear a diving suit and use a filtered water source when firing your weapon.