Yes, it sounds like you was lucid for a moment. The only question you need to ask yourself is whether you fully realized that you was dreaming or just think that it might be a dream.

Anyway, I really envy you for having experienced sleep paralysis. I've never experienced it but I'd really like to