If you plan on installing a new water heater soon, then yes, it’s a great idea.
Natural gas was once considered to be a “clean” energy source, at least with respect to coal. But we’ve learned now that methane is a greenhouse gas, and it’s production is disastrous for the environment. Some municipalities have actually banned the installation of new natural gas appliances altogether, with many sure to follow.
Similar to installing a 220 EV car charger, this upgrade will require en electrician to come and run a new line from the panel. Copper prices are high, so the cost will be entirely dependent on the distance from the breaker. Ask any electrician to come down and give you a quote before committing to the plumbing install.
Good luck.