First of all, welcome to Dreamviews!

Yes, that was definitely a lucid dream.

To stabilize your LD and become lucid, one of the things you can do is to do a RC (Reality Check - Tutorial here.)

Sweet Dreaming!