This is an ‘it depends’.
I find the ID-in-filename really very useful sometimes. Word and Excel docs primarily, at work, so I can scan my recent or currently-open files and immediately see what they relate to. As per the example Jack notes above.
But it’s not mandatory, no. By the time you’re in an ID folder you’re already hyper-organised, you’ve done enough.