No, you don't need to have finished the game. You can access "Return to Ostagar" at any point after reaching Lothering.
That said, if you have completed the main story, you can continue playing with that character—though you'll only be able to visit certain DLC areas.