This is pretty common among museum ships. I remember sleeping over on the USS Massachusetts (Battleship Cove) when I was young, and I've been watching the USS New Jersey's youtube channel (https://www.youtube.com/channel/UC_Ftxa2jwg8R4IWDw48uyBw) and I know they do it as well.
Relevant also is the Smarter Every Day series where the host took a cruise on an operational nuclear submarine. https://www.youtube.com/playlist?list=PLjHf9jaFs8XWoGULb2HQR...