Yes, Jura...that would be an effective measure if you can get the vessel to run into one.I see, thanks Jeff ... so the best buy would be a sea-mine which blew away your rudder and broke the shaft
However, mines are static and located in place and the ship has to come to them...and then when one does damage, a mine clearing operation goes on. So you may do damage and then slow down the rest.
A submarine with its torpedoes goes out and hunts the ships...they take the weapons to the, They are also more likely to sink a vessel if they get a good firing solution and fire multiple torpedoes.
Both have their place.