Yeah! The Silent Hunter series is just purely WW2 Submarines and U-Boats. Even though SH4 is almost a decade old but I love this game. It's pretty nerve racking to play, you got make sure your calculations are correct for your torpedoes to make contact (And the torpedoes are modeled to often fuck up like they actually did in real life) and you have to escape enemy destroyers searching for you. Got some fantastic mod which makes the game a lot more realistic and difficult.
And SH4 follows the entire course of the Pacific War, so that's a pretty neat history lesson there. If you want the Battle of the Atlantic, that's Silent Hunter 3.