Based (only) on the personal experience of going for a run after a day at the computer and then working on a side project, I would say that even after 8 hours you can recover from the mental exhaustion of the day. Not completely, but you would definitely be able to work more/better than without the exercise in between.