Yes, that's right.
Passing in a Node is exactly as passing any other type.
You just have to add the proper logic about which Node to pass, but that's up to you. :)
EDIT:
Not exactly pertaining to the question, but you would write node.set_pos(Vector2())
instead, at least for a Node2D.