Yes, for some subset of people.
Many people found they did prefer to be in-person to be effective, innovative, and enjoy their work. Some companies are going to want to hire those people and avoid hiring the ones who don’t prefer in-person work.
Nothing wrong with that. It’s somebody at the the company’s decision to make. And maybe it’s a bad decision or a good decision, who knows.