Yes, but only in a very specific and practical way. When combustion is removed from the system, a major category of risk is eliminated. You no longer have concerns related to gas leaks, incomplete combustion, backdrafting, or failed venting paths. Based on real world service experience, the majority of fireplace safety incidents originate from fuel delivery problems or exhaust handling, not from the visible or decorative portions of the unit. An electric fireplace still requires correct electrical wiring, appropriate circuit capacity, and manufacturer specified clearances, so it is not risk free. However, it does not generate carbon monoxide, does not rely on draft, and does not depend on flame stability. These advantages only apply if the existing gas supply is properly disconnected, capped, and pressure tested. Leaving an unused gas line in place undermines the safety benefit and introduces unnecessary long term risk.