They are, and in one important respect they can be better. A console ships with the hardware it will have for its entire life — opening it up usually voids the warranty, and most owners are not in a position to swap components anyway.
A PC is the opposite. The graphics card, CPU, memory and storage can all be upgraded, so a gaming rig keeps pace with new releases while a console stays exactly as it left the factory and falls further behind.
That difference is a large part of why PC gaming remains a strong market, and it will keep driving hardware sales on both sides as the technology moves on.