I sold my house in 2015 and claimed the capital gains exemption due to a change of job. Can I claim it for 2017 tax season if I sell this year?

I'll live in this primary residence for 2+ years