Just before Netscape was purchased they open-sourced their browser, and the Mozilla organization formed to continue the open-source Netscape codebase as the Mozilla Suite. So, basically yeah, the actual Netscape code became Mozilla and the Netscape legal entity just became a Yahoo subsidiary that they did fuck all with
Ah, I felt like I had forgotten a few parts. My bad.