As long as you realized you were in a dream, while knowing that you were dreaming, that means you were lucid at that point, so congratulations.