I'm going to say that yes, providing that the answer is clearly proved to be the correct one (by an answer being accepted, for example). If there is any doubt, the the author's name should be excluded, until all doubt is removed.