Yes, the storyline of Doom 3 is connected to Doom 1 and 2. It follows the same overarching events, just told from the perspective of a different Marine.
So while you step into a new character's shoes, you are essentially experiencing the same story from another angle, which ties it neatly into the earlier games.