I totally believe this. Whenever I'm being unproductive or battling an idea/problem I'll go outside - walk around or bike, do something. Taking your mind off things allows it to come back stronger than ever when tackling the problem again. At least for me, anecdotally, this is true.