My actual dreams are usually too incoherent to be of much use to me in my fiction.
However, quite often I find myself thinking of my stories just before sleep, as I lie in bed, and sometimes ideas, scenes, and plot twists will come to me then in profusion. Sometimes I even remember them the next day...