Letter of Recommendation - Referee work relationship timeline

Hi,

Do all the letter of recommendations need to be written by people that you worked with in the last 5 years? Or can one of them be from an earlier time as well?