do you have to know that your in lucid dream to actually have one? or if i was flying in my dream and when i woke up i noticed i had one does that count?

because in my dream i was flying ans stuff but i didnt actually notice i was in a lucid dream when i was dreaming.