Yes -- the entry depends on what type of form is being input.
For Form W-2, for example, the employer's federal ID is used.
But for Form 1099-R, the payer's state ID number is input.
Please see the 2022 Schedule IL-WIT IL-1040 Instructions for more information.