Sure, but illegal immigration is hardly the only reason for visas (many countries have concerns over organised crime for example), and it ranks well below other countries that have similar reputations for illegal immigration. For example Congo and South Sudan rank higher and given the refugee numbers from those countries I'd imagine they are a large source of illegal immigration too.