Can someone have a villager move to their island if they have a villager in boxes?

No. You can only invite a villager in boxes from another town if you have an empty plot on your island (meaning the villager already moved out and their house has been replaced by the for-sale plot)