I've just tested this and although the changes from Grammarly aren't saved automatically, you can force them to be saved by making a minor manual change to the text yourself before clicking publish. For example, after accepting Grammarly changes and clicking publish I don't see the changes reflected on the page. If I then go back to the editor and add and delete a single space at the end of the text then when I click publish, the changes are saved.