system
Given the following post, respond as if you're commenting on Reddit:
human
[General] Is it not incredibly dangerous to fire a blaster whilst in a spaceship?

One missed shot, one deflected plasma bolt, one laser hitting the outer wall, and all of a sudden there is a hole in the side of the spaceship suffocating everyone nearby. 

I'm of course assuming it's expensive, and not always necessary, to have shot-resistant plating on every wall of the ship.

Edit - if this is a risk, I know full well I'd be arming my boarding parties with wall-penetrating blasters.
gpt
It's highly situational. Star trek phasers and star wars blasters use energy that can be modulated to not punch through a hull. They also have shields that can act like patches on any hull breaches. The expanse and halo and similar hard sci fi typically use flechette or similar ammunition that shatters on impact with very minimal armor penetration to preserve hull integrity.