I don't know that the question was ever answered by moralists. However, if it were to prevent an evil, like children being adopted by evil men, heretics, or infidels-- it probably would be a good work. I would think though that the adoptive father would have some obligation to provide a motherly figure for the children. Maybe in the form of teaching nuns, a grandmother, or an aunt.