Yes, the story I've just started publishing yesterday is based on a dream.
I had this really vivid dream of a scene in the story, which will come later on; I was in the POV of the main character, and besides being in the scene, I had full knowledge of "how we got here" i.e. what happened before...