Yes, most any law is primary enforced against people within the same legal jurisdiction. It matters less where the server is and more where the relevant people/organizations/assets are.
Major OS providers, including major Linux distributions, are all within reasonable reach of Illinois law.
It’s probably less relevant if you’re a hobbyist working on Hannah Montana Linux on the other side of the planet.