State tax filing

I lived in IL all of 2019 and my husband lived in Wis all of 2019. All of our community property is in IL. Am I understanding correctly that we can file jointly for federal and separately for state?