Yep, that’s the rifle he used, along with a G.I. 1911, although the movie shows him using a Luger (only because they couldn’t get the blanks to cycle right in the 1911). I have an M1917 myself, along with a couple of SMLEs, No.4 MkI, and a few K98s. Sadly, no ‘03 though......yet.
I’m not a bolt gun guy myself. I like the Garand.