How do I read the node ID?
No, Node ids are unique.

But yes you can avoid this kind of issues in feature by using url alias in drupal as you can generate same URL for different node id if current node is deleted accidentally.

Documentation for URL alias https://www.drupal.org/node/120631