I'm not so sure about that, aircraft carriers are phenomenally expensive to buy and run. Having a massive, fast vessel absolutely loaded to the gills with weapons is still a very useful thing to have.
Any modern battleship would certainly have substantial missile batteries in addition to the main guns.