As the ending is the destination, then I'd say everything I write is about the journey to that ending. My writing philosophy is simple: How do I know where to take the story if I don't know where it's supposed to end? Sort of like planning a trip. It helps to know the destination, but that also doesn't mean there's only one route there.
There are writers who simply write and figure out where their story will end later. Pansters? Not sure if all Pansters don't know their endings ahead of time.
Overall, however a writer gets to the end, you absolutely need to stick the landing!