yes its possible. I used to use a mantra to wake up in the morning instead of an alarm. and suprisingly i got within 5 minutes of the time i specified in the mantra. Im sure you could modify it to wake up before a REM period.