depends, if you are trying the compressed training time approach, then you should never ride hard on tired legs as it will inhibit you from going as hard as you need to get the needed muscle stimulation. If you are training on the big miles approach, then it is ok to train on sore legs as long as you give yourself the necessary rest and recovery at the end of your training week.