Yes but for many (that will have a computer anyway) the question could often become what the cost of a PS5 + regular PC or PC like device vs a PC able to gameI'm not saying you can't get a prebuilt or custom built, but compare any prebuilt with a 5700xt in it and I bet it's 2x the cost of a ps5. It's just cheaper to buy a console and than an equivalent PC.
People that would ever play big game on a PC are the exception, not the norm and we are talking about that minority, people that would ever consider doing that probably do so because they have had PC in their life already. For someone that would have not have a PC at all if he would not want to game on it, the cheapest answer (if we remove piracy obviously) is a console, for a very common scenario of people that work from home on a PC anyway, the price difference can become quite smaller, could often come down on a $65 more expensive PSU + a video card type of difference.Again, we're the exception for this, not the norm.
We often exclude price when we talk about stuff, the TV for a console, the Internet cost for Netflix, often for good reason but that for some would not be fair, for gaming PC to count 100% of the cost of it make sometime sense (someone building a new PC to put in is living room that will exist exclusively because he want to game on it) but often does not, has say the first $400 would have went into a regular non gaming able PC anyway and they added to it more performance for a computer they would have had anyway otherwise. It can sound like a stretch but look at the popularity in pre-build PC of the Ryzen cpus, why would a purely for gaming machine not go with the intel proposition instead ? A lot of it could be heard mentality, but a large percentage of people gaming on a PC could be doing other things on it, from browsing, torrenting, working from home and so on.
Same goes if someone last TV they bought took into consideration (and in the pricing) what the TV do when it receive an over 30 hz signal because they planned to plug a console in it, that goes into the price of console gaming but just how much more they paid than what they would have paid otherwise for their only for movie/tv series watching TV they would have got instead.