A flare gun is common emergency equipment for a boat and could easily be repurposed if the occasion called for it
While there are USCG-compliant flare guns, you also cannot satisfy SOLAS requirements with a flare gun. You need to carry (depending on voyage and vessel) handheld distress, collision avoidance, and/or paraflares.