Can i get the location of another object in nodes?

Title says it all.
Is there a node in the node/shader editor to get the location of another object?
I wanna make a texture that would copy the location and move along with the object.

Texture Coordinate node, Object. In this case I used a empty which I had to rotate 90 degrees on the x axis so that it would work.

cross-brush-4 cross-brush-3

ah thank you

your welcome.