TwpTwo points to complement the other answers:
- Playing one note at a time (whether, whether in scales, arpeggios, melodies, etc.), helps you fine-tune your sound/tone.
- Especially when you are new to the guitar, practicing various scales can help strengthen your fretting hand and will allow you to move between various chord shapes/voicings more easily.