If you’re concerned that the previously deceased NPCs rise: As far as I know, a Zombie can only revive if it can stand on the tile the body’s on*, and it’s for some reason not possible to walk over a built coffin.
*This was not the case in earlier versions, but (based on what I’ve seen) it is the case now - at least from 0.E…
… I write this while staring at my multiple lockers and other storage tiles that I’ve filled to the brim with Zombie corpses, stored for… later use.
However, if you’re concerned about getting the NPCs back to your place before they turn… just throw them into a car’s trunk and drive wherever you store them (or drag them across the map, if it’s not that far) and it should be fine - I think. I did/do this a lot with unpulped corpses.