Yeah it's entirely possible

Think your brain is still strong enough to dream as it's only your imagination , it doesn't have to physically move