Depends on the hardware. A desktop PC can definitely have better hardware/power/cooling.
But, yes, the Steam Deck is an awesome linux gaming computer. Even better than the hardware itself, I think the Steam Deck is a _huge_ driver of Valve to improve Proton, so in a lot of ways the Steam Deck is driving forward linux desktop gaming too.