Yes, it is crucial to shut off the gas supply before attempting to extend the gas line. Locate the main gas shut-off valve and turn it off to ensure safety. If you are unsure or uncomfortable doing this, contact a professional to handle the task.