Yes, just make sure that the object whose position you are recording doesn't get deleted as I think the game crashes on null references. Pseudo script would be:
1) Copy coordinates of object in question
2) Copy coordinates of NPC
3) Fancy trig to calculate NPC's new postion
4) Set NPC's new position.