Whether or not to consider the dynamic effect of pile-soil interaction depends on the problem you need to solve. Not all analysis needs to consider the dynamic effect. Under seismic loads or other dynamic loads, it is necessary to consider the dynamic effect of pile-soil interaction. The dynamic effect of structures is often related to the natural vibration period of structures. If the dynamic effect is not considered, the real response of the structure will be deviated.The pile-soil interaction can be simulated by the nonlinear springs. The characteristic of the nonlinear springs can refer to the p-y\q-z\t-z curves in API code. Finally, the dynamic analysis method is used to analyze the pile-soil effect. If only under static loads, the dynamic effect of pile and soil interaction can not be considered. I hope my answer will help you, sincerely.