Yes, that's called Wake-Initiated Lucid Dream (WILD).