Hi,
You think in low frequency, where the wavelength of the signal is longer than the cable.
In your case the overall trace resistance, imepdance, capacitance... counts.
But this is not the "characteristic" impedance. It´s the total cable impedance.
For sure the total cable impedance depends on frequency .. and btw on cable length, too.
The characteristic impedance however is when the cable length is bigger than the signal wavelength.
Then the signal (edge) of interest maybe is just 0.2m in length while the cable may be is 10m in total.
So for the signal only the 0.2m is of interest.
For a better understanding you may look for videos about "characteristic impedance" or "traveling wave" or similar.
Klaus