Although illegal immigration has some unwanted consequences, its effect on the economy may be a positive one.