Not exactly.
get_node() takes a path which is a NodePath type, which behaves like a String.
The closest thing to what you want is the shorthand $, but it will need quotes if you use spaces in your node names.
$my_node
or with spaces $"my node"
For manipulating paths with variables you concatenate as you need.
for i in 10:
get_node(str("node_", i))
If you want to use some other method you can collect up the node references and store them in a Dictionary, using the key as the identifier you prefer.
onready var node_table = {
1 = get_node("thing"),
2 = get_node("thing/child_1"),
2 = get_node("thing/child_2")
}
You could also create constants with the paths, so these can be updated quickly from the top of your script.
const FIRST = "thing_1"
const SECOND = "thing_1/child_1"
if(has_node(FIRST)):
get_node(FIRST)
Nodes also instance IDs, but these are entirely fixed as you develop, and the tracking of these can be more verbose and prone to error.
Objects have the method getinstanceid().
GSCript has the utility function instancefromid .