It kinda depends.
For heavy stuff like racist / sexist / bigoted invective I do not think there is any value in leaving toxic waste lying around to continually poison the community, e.g.
For lighter violations, sure, edit and then leave a staff notice on the post.

