Yes, it’s a good idea to replace the inner tube when you change the tyre. Tubes wear out over time and can get stretched, pinched, or damaged inside the old tyre.
Fitting a new tube when replacing the outer tyre helps avoid unexpected punctures and ensures a better fit and seal with the new tyre.