I reckon there would probably still be some if else system going on the body of a newly dead person.
Cognitive intelligence in parent's example dies with you. It's gone. But a molecular biologist might say the cells of your corpse exhibit intelligence for some time after. They die gradually, and they do so according to a script of sorts.