If you realized you were dreaming, then yes, it was a lucid dream 😀