Yes, but it would move very slowly compared to current freight ships, think an order of magnitude lower average speed. (You can compromise on the freight features to get some more speed of course, but it's still going to be slower unless you do something dramatic like fly a huge PV array as a kite or something)
Besides PV, there's a long history of wind powered ships of course.