Didn’t the Germans do that in WW II to refuel the U Boats?
They apparently tried, but by mid-1943 the U-boats of every type were being sunk readily:
“The Type IXB Uboat that was used off the east coast of the USA had a range of about 14,000 miles at about 12 mph on the surface.”