Yes! If it's the episode I'm thinking of, it's "No Indians" from season two. Chester even protests the idea of Matt shooting first and asking questions later, and Matt only has empty justifications in response. And then the ambush happens, and Matt drops half of them immediately. It's pure Meston-era Gunsmoke.