There is such a theory that intellectual work will also be replaced by robots with artificial intelligence.
I think that if we talk about the distant future, then most likely it will be so. After 100 or 200 years, most people will be unemployed and will live on social benefits. And physical and intellectual work will be performed by robots. Although today it seems fantastic.
Its true, in the distant future, robots will almost completely replace humans. Only professions with a narrow focus will be needed. And now the majority of specialized experts have found themselves in freelancing.