Absolutely! Taking 5 minutes away from a problem can bring to light the solution when you're not trying to "bruteforce" the solution in your head.
Same as sometimes when driving as I'm not focused on work can bring about good ideas.
Same as sometimes when driving as I'm not focused on work can bring about good ideas.
It's the same reason that I used to have a bath whenever I'd get stuck on a college assignment.