Well a lucid dream in itself is being able to tell you are dreaming which you were so, yes this was a lucid dream.
Being able to control yur dream will just take practise. I had an experience just like yours a couple of days ago(i would link it but i havent been a member for 7 days yet)
Just keep trying and i bet you'll control your dreams soon