Yeah! If you realised you were dreaming then it was a lucid dream, well done!
Sometimes the dream will just slip away, it tends to get easier the more LDs you have, but try to remind yourself to focus on stabilising all the time or it slips.