yea it's hypnogagic hallucinations. Most of the time we lose conciousness before they occur. But if you stay concious during them it's a good thing because then you can step into a lucid dream (wild method).