The entire purpose of experiencing externally induced pain is to cause a reaction before the threshold of permanent damage is reached. Given our imprecise biological systems, that threshold needs to be crossed with a safe margin of error. It stands to reason that reactions to avoid threats to the the continuation of life are valid, regardless of the presence of nociceptors.
Internal pain (headaches, etc.) may require some manner of cognition to associate behaviors with the result, assuming they have a cause other than flawed biology.
Internal pain (headaches, etc.) may require some manner of cognition to associate behaviors with the result, assuming they have a cause other than flawed biology.