Yes, they should be transferred to federal immigration authorities, but not for immediate deportation
They should have their right to a free trial, represented by their countries authorities and legal status should be addressed at the time of conviction and sentencing.