You can do that, or you can just look at the notes of whatever particular chords are being played and figure out which scale would contain those notes.
Example - if you're playing the progression G, C, Dm, you'd play in G mixolydian (C major), because the Dm has an F note. If you were playing G, C, D, you'd play in G major because the D major chord has an F#.