Mhm. If you knew you were dreaming, at any point (the whole time, just for a second, etc), then you were lucid. Period.