This is only true for LTI (linear time-invariant systems).
Nonlinear systems responses to a sine signal are in general not just a change in phase and amplitude.
It works if the perturbation stays small and within a linearised version of the dynamics.