Using a gun as a gameplay mechanic is totally fine —,as long as it’s not overly realistic, graphic, or focused on real-world violence. Stylized or abstract use (like in Nuclear Throne, Enter the Gungeon, etc.) is perfectly acceptable.