Yes, it is very important to keep the maintenance of every piece of equipment for a gas stove. Especially the gas pipe.
When you use the gas pipe for a long time it gets prone to get damaged. But, you may not know whether your pipe has leaks or not.
So to avoid accidents you should frequently change your gas pipe.