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.
Just to add to this. Amplifiers aren't unique to headphones. While headphone amplifiers shouldnt change the FR that doesn't mean they can't. Just look at guitar amplifiers and you will see tone stacks where you cut treble, mids or bass. From an EE standpoint they are the same