Yes, this encourages a measure of awareness and hopefully responsibility in the country in which they intend to live
Test should also be extended to include legal agreement to abide by the laws or be immediately deported for significant crimes, on top of serving any other penalties assigned to current citizens.