NPCs does not block door
You can still close doors when an NPC is standing on it. The NPC in question is still able to move and behave normally afterwards. Sometimes NPC can even spawn on a closed door. If that happens, the NPC will be unable to move even after you opened the door.