Background Cancer patients with posttraumatic stress disorder can lead to their noncompliant behaviors. However, less is known about the neurocognitive functioning of posttraumatic stress disorder in general cancer types or patient populations. The current study attempted to examine the prevalence of posttraumatic stress disorder and their relationships with executive function in individuals with cancer. Methods A total of 285 cancer patients with posttraumatic stress disorder and 150 healthy individuals were recruited for the present study. The Clinician Administered PTSD Scale, Tower of Hanoi, Wisconsin Card Sorting Test, and Wechsler Adult Intelligence Scale-Revised Chinese revision were administered to all participants. Results Significant differences in the score of Tower of Hanoi, Wisconsin Card Sorting Test, and Wechsler Adult Intelligence Scale-Revised Chinese revision were observed between the posttraumatic stress disorder group and the healthy control group ( p < 0.001). Significant correlations were found between all posttraumatic stress disorder symptoms and executive function. Conclusions These findings suggest that individuals with cancer-related posttraumatic stress disorder exhibit more severe impairment in executive function than healthy controls do.