Or even for ships and planes. Whats more likely in the long term, that cargo ships will be powered by batteries or that they could be powered by a compact fusion reactor?
With the right batteries, why not? You can pack them in 40ft containers and swap them at the port to charge them on land when energy is cheapest. That way it could probably be even possible to retrofit old container ships.