You don’t need to know the purpose as you write, but when you read over something you’ve written, you should be able to point to any given element—be that a line of dialogue, a descriptive phrase, a plot point—and say why it’s there.
Diana Gabaldon, "I Give You My Body . . .": How I Write Sex Scenes
diana-gabaldon, sex, writing