Maybe sometimes, but only for dreams that are literal. For example if I dream about my teeth falling out because I’m worried about moving house, writing a story about teeth probably won’t stop those nightmares. If I wrote about moving house it might. But you’d have to know what the dream was representing.
That’s what I mean about it depending on why those dreams or nightmares are happening in the first place.
That’ll take too long to write out I had a sudden thought that we’d talked about dreams a lot before, then remembered it was in these posts.