Yeah the main factor in how much will a large wave or tsunami affect a structure at sea is how deep is the water the object is in. Out in the deep ocean the surface swell is less than a meter and the wavelength is huge (200 km or so long) so the change is relatively gentle and gets subtler as you get deeper. It's really neat.
https://en.wikipedia.org/wiki/Tsunami#Characteristics