The built-in way
From the Screenshot toolbar
- Make a folder for them first, for example Pictures/Screenshots.
- Press ⇧⌘5 to open the Screenshot toolbar.
- Click Options. Under "Save to", choose Other Location… and pick the folder.
- Press Esc to close the toolbar. The setting sticks.
This only changes where new screenshots go. The ones already on your Desktop stay there.