Wrong, a rail gun is a point-shoot-hit weapon. At the speeds they are currently able to attain, even a jet plane cannot move fast enough to evade. And the one that was tested on a tank in Iraq destroyed the tank and did not even exit the other side. But the entry hole was the size of a pencil.
The rail gun is a game changer for any battlefield. If you can aim at it, line of sight, you can destroy it. A small drone with only one shot capability can sink the largest carrier. All size does is make it easier to hit, and there is no counter weapon for the railgun or directed energy weapon.
Not for the sea. I have watched rail gun tests and the amount of energy needed to fire just once requires a vessel that can generate a massive amount of energy. Not your typical tin can. LOS requires closing within ranges that the CBT would have already eliminated the threat, so not practical from a naval warfare standpoint, unless you have plenty of picket ships. Thus far, China is the only one that can approach that size of force.
So, the remaining option is OTH and ships can maneuver out of target. If their tracking is sufficient, then the odds go up, but they are still within reach of the Super Hornet and a pre-emptive strike is on the menu.