Yes, this is Sleep Paralysis, or as we say around here, SP. It's a perfectly natural phenomenon. Normally, you are asleep before SP sets in, so you are unaware of it. This is what prevents you from sleepwalking or otherwise "acting out" your dreams.

If you can enter SP, it can be used to achieve a lucid dreaming state. This is known as WILD.