Obviously. If you don't have junior devs you will never have senior ones either. It's implicit.

I guess the theory is that in 5 or 10 years when that becomes a problem AI will replace the seniors too.

Magical and wishful thinking in my opinion.

Of course lots of people think that.

Lots of people are betting the other way too.