For that particular file, yes.
However you will need to learn how to merge files when it gets to the other files that may have been updated such as /etc/passwd, etc.
But just pressing D (?) when prompted to make a choice of what to do with the new copy of /etc/hosts should be fine.