I don't think an amp could be able to change the frequency response of headphones, but some people say it can, but why could it? How can an amp change the sound? Only talking about solid state because I don't know much about tube amps. An amp increases the amplitude of the signal, this would evenly increase the signal throughout the frequency range, I don't think there is a way to boost the low frequency signal more than everything else. It's all analog so there is no DSP, it receives an analog signal and outputs an analog signal. If there is something inside it that can change the sound from an analog signal, then a cable could also change the sound using the same technique.
I know some multi driver IEM can use an impedance adapter to change sound by changing the ratio of how much power one driver gets over the other, making it relatively louder than the other. But this won't work for headphones.
Search for "frequency response". An ideal amp would amplify all frequencies evenly, but there's no such thing. Also have a look at your great grandma's tube radio, it has knobs for bass and treble, and it surely has no DSP.