Deductions & credits

So even if I had no earned income in 2020 only unemployment I can still use my 2019 earned income for the eitc?