Your attempt at humor or sarcasm failed badly.
First, I said "near to the coast".
Second, components could be shipped in separately.
Third, even if one were to arrive in port, the terrorists would likely want to move it inland so as to do much greater damage.
Finally, due to unexpected delays, it would be impossible to set a timer to detonate as soon as the ship arrives in port. It would take proactive action by somebody to set a timer or do a direct trigger at the proper time, something security could possibly detect and stop at some point after arriving or near to arrival. Security on the ship, (if the USA had proper security), between the point of the Bahamas stop and arrival, we would think would be looking for suspicious activity by people, even if the containers were not inspected at that point.
Stick to your day job--the comedy routine lacks punch because you lack the ability to think things through.
it is obvious you have no idea how port security works.