State tax filing

I think I should be filing as a resident in Illinois, but part-year in Michigan. Would that be correct?