Counter to that there is the principle of Chekhov's gun, that states that every element in a story must be necessary, and irrelevant elements should be removed. For example, if a writer features a gun in a story, there must be a reason for it, such as it being fired some time later in the plot...