I think it was a coincidence. I woke up after the second dream, wrote both of them down and just went back to sleep. Though it could be possible. I don't remember exactly what I was thinking about as I fell asleep.