Yes. I guess I should be a wee bit more clear. Off hand I dont have the IL law and I just got home from work. Basically the law states that any commissioned member of the IL State Police, IL Secretary Of State police, IL Conservation police, any sworn member of an IL sheriff's office, any sworn member of a municipal police agency, any member of a forest preserve police force, A member of the Cook county hospital police or transit/railroad police agency may effect an arrest for any violation of Illinois law that happens in there presence.
If the sheriff's deputy was in preformance of his or her official duties then yes they may make an arrest and detain you till the local police/sheriff's office or transport you to the local county jail.
If your in the Chicago region, this is done on a very daily basis (IE Chicago cops making an arrest in Evanston, Cook county sheriff's police make an arrest in Dupage County etc..)