If you were questioning the events that were happening in the dream then yes, you were probably close to becoming lucid. Almost all DILDs start by you noticing something strange. After that all you do is preform a reality check to be sure and viola! You're lucid (If it works and you believe it).

While I haven't had a dream end right before I would've became lucid I have had near misses which include dreaming about LDs and doing reality checks, having them pass but not believing them, and just having reality checks say it's real even though I wake up minutes later.