
You may have heard that jazz guitar players artfully play ‘wrong’ notes. However, if you just play at random frets you’ll probably sound more like a crashed train than Coltrane.
A better way to think about it is as ‘tension and release’: notes that clash with the underlying chord create tension, while notes from within the chord release that tension for a sweeter sound.