The only thing you have to ask yourself is whether or not you knew you were dreaming at the time. If you did (which seems to have been the case), then this was indeed a lucid dream, and if not, then it wasn't. ^.^