Yeah, but even in that role they are just out done. Missile, plane or drone carriers are cheaper then maintaining, deploying and supplying a fucking battleship. If you look at the last time the Iowas fired their guns in anger you will see it was also even then found to be a massive waste of money. Also they can't be used in a place they could be sunk, so only beating up minor nations, in such case that they are not really needed.
Oh you can change the topography with 16 inch guns, sure. But bombs, missiles and now drones are better at mission kills at a fraction of the price.