Many ships already use wind power. I don't think you'd be able to harness the wind, convert it to electricity, and use the electricity more efficiently than a sail.
(You’d think pure wind power would do this as well—the engines can in theory work less hard if the sails are full—but wind is too precarious to match the slow ramp-up/ramp-down times of the giant motors used to power boat propellers. Those things are what power plant designers would call “base load” — mostly you don’t even turn them off, you just engage a giant clutch to put the boat into neutral when you don’t want to be moving. The master “transmission” of a boat is essentially a cylindrical steel flywheel; and you don’t want to lose its momentum. This is why boats a good match for bunker-fuel furnaces — or, on subs, nuclear — which are power sources that also ramp up/down slowly.)