There are examples of solar electric catamarans - but they are much smaller than a cargo vessel. It's not nothing, but we're some ways away.
I wouldn't underestimate what creative and dedicated engineers can accomplish.