While using the self-cleaning feature on a gas oven is generally safe, it is recommended to consult the manufacturer's instructions to ensure proper ventilation and safety precautions.