I was a inmate 4 months of the year with the same do I get earned tax credit for the remaining 8 months after incarceration

Worked same job 4 months incarcerated 8 months free do I get EIC