Yes, after another dream about reality, Ryan was aware he gotta change the future, change the terrible reality he just dreamt about.
It's been since he lost his left eye that he is seeing dreams like these. He noticed a pattern between them after nearly two months of this phenomenon.
The exact night he lost his eye, he dreamt about Doc kissing him and getting laid with him on the bed, turned out that it was not a dream.
He dreamt a few hours in the future that night, just a few hours ahead in the future.
The next dream, he dreamt about their fight with the Blossoms. Gwen's and Naomi's clothes were torn away while fighting, their base was attacked and they lost the battle.
He realized he dreamt of a day in the future. Just a single day in the future. That was clear enough for him to realize- he can dream about the future.