Yes, well, a canon has been shot in space. The Soviets fired a projectile from a 23mm canon in 1975.