What does it mean to vary the sentence pattern within a written work?

I would assume that long/compound and short sentences would be used within the written work rather than just using either one. Do you agree?

Does this example above help? Thanks for asking.