Well sure, it depends what the counterfactual is. If those countries just physically prevented the people from leaving, and nothing more, I wouldn't expect that countries' outcomes to improve. But what the countries suffering from brain drain presumably want is for there to be attractive opportunities for those skilled workers in their own country.