No, they don't hurt.... but they probably are hurt. They don't come out like that, he's probably dying.
Some peeps don't like them so much if they keep dragging stuff over nearby sensitive coral. Those little tentacles reach out and drag back food items.