Personally I believe if the person who's making the joke actually knows what the traumatic experience was like and uses it as a coping mechanism, that's ok. Other than that W take
I js joke about my shit its kind of a way to cope w it bc I hate talking abt serious shit, I js turn it into a joke, like "oh, yeah, my house burned down when I was in fourth grade, the horrors persist but so do i"