Yeah, but it won't be enough RAM at some point in the future. I'd guess you are feeling pinched by 2024. If you swap your laptop faster than that, you might not care (though it will hurt your resale value). But for folks who expect 6 to 10 years out of a Mac (which is a very common expectation outside of nerds like us commenting on Macrumors), 8gb of RAM is a deal breaker.
I disagree - you'll more than likely find that RAM isn't what will hold back your Mac down the line; it'll be future OS non-upgradability. I still have 2009 iMacs that are running like a champ, but since the OS is stuck in the past, it is starting to limit app compatibility. But that's almost 14 years later!
I'll say it again: 8GB on the M1 architecture is absolutely fantastic. It handles RAM more efficiently than any computer I've ever used. As for longevity, I picked up my MBA M1 for less than $700 almost two years ago, so at this price point I've already gotten more use than its 'value'. If you really want a machine built for 10 years, you probably aren't looking at an entry-level MBA in the first place.