Sweden has done it before very successfully. Also yes there is a limit on how many people you can sustainably take in. The Swedish government put on the brakes when the system couldn't handle more.
When the system cannot handle more it is already too late. And don't compare times when everyone was illiterate with today, it is not the same background and a similar outcome is not likely.