Yes, they have to pay you for every year that you work. They may decide not to hire you in the first place because there will be a funding problem down the line. But these funding issues are very complicated and many programs will not care. All fellows are reimbursed at the decreased rate, and programs sponsor lots of those.