Yes but they could have stopped it before it entered the port for US law to apply.
Since a clever terrorist might feint toward one port while out on the open seas and then change course when in reasonably close to deliver payload to a different real destination, we might be clever enough to wait until she actually enters the outskirts of a port in order to better ascertain the true target.
6 Full Legislative Days Left Until The AWB Expires