If you knew you were dreaming, then yes it was. DILD almost always occur at the end of dreams.

You could always try these.

http://www.dreamviews.com/community/...ad.php?t=36281 - Dream exit induced LD

http://www.dreamviews.com/community/...ad.php?t=30783 - wake initiated lucid dream