Do I file Both IL and IN State tax returns?

We built a home and moved in mid-March 2019.  In January, February, and first part of March we lived with a relative in Indiana until our home was finished. Do we need to file for both states (IL and IN)?