Will this code move an object

using UnityEngine;
using System.Collections;

public class move : MonoBehaviour {
	
	// Use this for initialization
	void Start () {	}
	
	// Update is called once per frame
	void Update () {
	if (Input.GetKey (KeyCode.UpArrow)) {			
		transform.position.Set(transform.position.x + 5,transform.position.y,transform.position.z);
		}
		if (Input.GetKey (KeyCode.DownArrow)) {
			transform.position.Set(transform.position.x - 5,transform.position.y,transform.position.z);
		}
		if (Input.GetKey(KeyCode.LeftArrow)){
			transform.position.Set(transform.position.x,transform.position.y,transform.position.z + 5);
		}
		if (Input.GetKey(KeyCode.LeftArrow)){
			transform.position.Set(transform.position.x,transform.position.y,transform.position.z - 5);
		}
	}
}

Please figure out how to do it

Set() will not work because transform.position issues a copy of itself.

To do this, you will need to create a new Vector3 and then assign it to transform.position.

eg

    if (Input.GetKey (KeyCode.UpArrow)) {
        Vector3 move = new Vector3(transform.position.x + 5,transform.position.y,transform.position.z);
        transform.position = move;
    }

In answer to your question, yes. In answer to your request, what?