It would be difficult to keep your mind conscious, but in theory it is possible.

Having a few hours of sleep before you WILD isn't necessary. Trust me, though, it makes it a whole lot easier. I've heard of people WILDing successfully when they first go to bed, so it isn't impossible. It's just not that likely.