That statement is true.
For example, using words that contain negative connotation such as 'death', or 'crying' would most likely create a gloomy atmosphere within the story.
Authors could use this technique of sentencing to control the type of emotion that readers would felt when reading a certain part of the story.