The statute allows the transfer “when the President directs,” so it can be used in a declared war, an undeclared conflict, or even a national emergency if the President deems it necessary for naval operations (e.g., to integrate Coast Guard cutters, aircraft, and personnel into Navy fleet operations in the Persian Gulf or Strait of Hormuz). The Coast Guard’s law-enforcement and maritime-interdiction capabilities would then operate under full Navy command.
Not a problem at all.
Grok:
in that case hope it works