No, you should not insert explanations into code-only answers.
An edit is to clarify the poster's intent. If they didn't explain, you are communicating your explanation, not theirs. And changing the author's intent is an edit rejection reason. And you are rewarding the posting of a fundamentally poor post. Post your own answer, giving credit for their code. Downvote and/or comment for clarification on their post.
How do I use the Suggested edits queue?https://stackoverflow.com/help/review-suggested-edits:
Basic workflow
- Reject if the edit is unnecessary, destructive, or counter to the original author’s intent.
Why can people edit my posts? How does editing work?https://stackoverflow.com/help/editing:
Common reasons for edits include:
- To clarify the meaning of the post (without changing that meaning)
N.B. However in typical Stack Overflow unclear documentation fashion, it isn't actually clear whether the preceding is actually a limitation on the general advice:
When should I edit posts?
Any time you see a post that needs improvement