Sure, you can do that. You might as well be gaming on a Steam Deck though, because that's the level of CPU you'd be limited to.
Which is fine, I've got a Legion Go S, it works fine as long as you're aware of the limitations.
But if I want the AAA big screen shiz, I'm loading up something on my PS5.