Correcting grammar to make a question more clear and understandable? Yes, absolutely.
But a word of caution: it's often not a good idea to correct mistakes of terminology in a question.
Here's an example. Many developers confuse JSON with a JavaScript object literal. While closely related, they are not the same thing. I saw a question a while back that asked something about JSON, but it turned out the question actually involved object literals, not JSON.
Someone edited the question to change "JSON" to "object literal" throughout. On the face of it, that sounds like a fine idea. After all, the question is now more specific and correct about what it's asking.
But the problem is that now the question will no longer be found by people who mistakenly search for JSON when they should be searching for "JavaScript object literal". And that's a fairly large group of developers.
If you do make an edit like this to correct some terminology, give some thought to whether it's just a completely off the wall mistake that other devs are unlikely to make, or whether it may be a more common mistake like this one.
If there's even the slightest chance that other people may search using the "mistaken" terminology, and you still want to correct the question, keep both terms in the question. It should be easy enough to do that, even as a footnote. That way people who search for the wrong term may still find the question.
This is also why "duplicate" questions are so valuable and shouldn't be deleted merely because they are duplicates. Even if the question has been asked and answered before, it won't have been asked in the exact same way. There may be some keyword, some bit of context in the duplicate that wasn't in the original, and that will help searchers find their way to the answer.