Carriers are arleady dead to good submarine with good missiles,so rather not.Unless you made carrier with hordes of cheap drones,it would work and not be missed too much when sunked.
Question of money.Are money we could save thanks to use railgun instead of missles are worth of building well armored ship ? if so,they would be built,if not - not.