Retirement tax questions

Thank you so much! Just so I understand correctly: if there is a $5,500 excess contribution one year, then in the next year my NET income is say $15,000, would that make up for the excess contribution in the previous year *and* allow me to contribute another $6,500 to the Roth IRA?