Can I legally get fired?

I’m 16 I work st McDonald’s(its Sunday) they want me to close the store but I refused since it’s a school night. Can I get fired? I live in Illinois
16 answers 16