That’s not quite right. Most of the farm workers in California migrated from crop to crop and county to county as the harvest changed. That’s why he wanted to unionize them, to get them better working conditions. These workers were US citizens. There were some legal provisions to import seasonal crop pickers. But most of the harvesters were US citizens.
He was a hero to the left for unionizing the farmworkers. But he also realized that illegal immigration hurt the citizen farm workers more than being nonunion.