Yes, you kind of can. Look at IU.
The real argument is the composers behind these groups have washed or fallen off, which is a more natural cycle.
In 2nd gen, you couldn't escape the Brave Brothers sound or S Tiger (R.I.P)
In 3rd gen, you had Teddy, you had JYP in his trendy era, you had B.E.P, you had Kim Do-hoon all cooking in the zeitgeist of the time
But all those people had their time, a 3-4 year stretch where their talents and sound matched the general interest. But the sound and trend moved on, and many of them failed or are failing to adapt.
So in turn, the groups that relied on these producers for their sound struggled. God knows Purki are super hit and miss, and they've got the same people behind Mamamoo's massive run behind them. Stayc are the same, and that's the same people who made Twice's string of hits.
But if a group can find the right sound and adapt and change to these sounds, there's absolutely no reason they can't still have hits. Look at Apink, came back in 2020 with B.E.P's last truly great song, and had a hit.
People always frame this as the group's themselves - sometimes groups at the height of their popularity can definitely lift songs that probably wouldn't be outright hits otherwise (Whiplash, Nxde, NJ's latest to some extent), but in a general sense unless they are actually (G)I-DLE, then it's just as much about who's making the songs as what's infront of them.
Even the the more minor groups - there was a 2 year stretch were Galaticka were cooking, but that brief moment is passed and I wouldn't trust Galaticka to have another hit for ages.
But unless they're willing to even adapt forcefully by searching out and finding more underground or hitherto untapped producers (like MHJ did with 250), they're forced to the IVE route of just importing songs wholesale and wacking a few korean lyrics on them. Which more and more tend to do, but it's not a formula for success, or more importantly it's not a formula for consistency. Which leads to the discussion above.
SM are a weird label, but I'll give them their due - they hold songwriting camps and switch producers a fair bit because they know that outright reliance on one producer proverbially means having a single point of failure.
People always having this discussion as 100% just the groups fault is kind of weird, not gonna lie.