It would be an interesting exercise to modernize one for this duty. But it would cost. I could see replacing the engineering plant with diesel/turbine electric generators (gonna need power generation anyway), and the drive units from mechanical to electrical (why maintain boilers to power the drive steam turbines.
In fact, the Navy has lost the capability of manufacturing 16-inch guns, which used to be done at the Naval Gun Factory at the Washington Navy Yard, long since turned into a minimall and fitness center.