State tax filing

I owe from 2015. I have a solar credit for my 2017 taxes that will cover what I owe. Will credit count for 2015?