The note length determines how long a note will sustain in reference to a standard 4⁄4 bar.
A whole-note for example, sustains over the entire bar. A half-note sustains over half of the bar, and so on.
This is how each note length is repeated in a 4/4 bar: