Carriers don't travel by themselves, and are heavily defended by anti-missile/plane/sub/etc installations and supporting vessels.
They may not last an entire war, but they will probably last as long as needed to tip the scale. It's more likely the carrier's aircraft will be lost before the carrier.