Battleships had a role. Aircraft have a role. In the near future, space based weapons and non-kinetic weapons will have a role.
But being able to shoot a huge 3 projectiles 20 miles with decent accuracy certainly had an impact. (Pun intended)
In WWII during the D-Day invasion, a German Panzer unit was waiting for orders to advance. The German commander knew the range of the shells of the battleship participating in the invasion. I think the battleship was the USS Texas. So he parked his tanks just out of range. The Captain of the Texas ordered the ballast tanks flooded to give him a 3 degree list, thus giving him a little more elevation. In short order, the Panzer unit was obliterated.