In all current forms of the game since AA Anniversary edition, subs (and transports) can not and do not ever block movement. So if in your example you can attack a stack of subs with a stack of destroyers and other units are free to proceed through to another seazone, even though there will be combat in that seazone (destroyer on sub).