No when they get killed by a boss or I’ve even seen some trash mob abilities kill them it counts as if they are dispelled/healed. But if you are using one of the many WA out there the WA does not pick up that they were killed so it can cause some panic trying to find the ghost that is no longer there. Fortunately when they get killed they fall to the ground as a dead body (I think they just disappear when dispelled?) so just look for that.