Question: The function of pain has to be to show a living creature where their body is damaged?
Answer: yes