The kinetic energy could be so great that a non-explosive projectile could do as much damage to a warship as a Tomahawk missile.
https://nationalinterest.org/blog/reboot/navy-railguns-are-coming-and-could-shoot-massive-slugs-mach-10-170064