Ya, not a dumb question, and you are correct. Submarines can’t use active navigational systems (anything that emits energy) like radar because it would defeat its own core mission of being a stealth weapons platform. They do use passive sensors to detect the environment around the ship and probably some other spooky secret stuff that I don’t know about.