Can i transform the position of an object to another object?

Just wanna know if it can , it would be helpful!

if yes , please write me a example so i can understand=D. thanks you.

Easy enough- just put this script on your object, and then when you want the object to move, call ‘SnapPosition’:

public Transform targetPos;

public void SnapPosition()
{
    transform.position = targetPos.position;
    // Add a line for rotation if you need to, it's basically the same
}

void Update()
{
    // Usage example:
    if(Input.GetButtonDown("Fire1"))
    {
        SnapPosition();
    }
}