Who’s infantry? US infantry is perhaps the most well-supported by indirect fire in history. Would they have enough ammo and fire discipline to outlast a classical army of 20,000 seeking to rip their lungs out? Maybe, if their battalion CO were a board gamer and ready for unconventional tactics.
I recall reading a story about Afghanistan. The soldiers encountered their first fire fight as they traveled in their Humvees.
After the encounter they went back to base and filled every nook and cranny with more magazines. IIRC they even cut holes in the door panels for more storage.