can we use sprite renderer component with Image UI eleement ?

i’m working in UI and i have to change image of “Image UI element” , is it possible or not ? if yes then how ?
thanks in advance

UI Image have component called Image (Script) with field named Source Image this is your friend you can drug/drop sprite from asset folder to it or change from script like this . script attached to empty game object :

public Image im;//attach the ui image from hierarchy
public Sprite sp;//attach sprite from asset folder
void Start(){
	im.sprite = sp;
}

other example script attached to the ui image it self :

Image im;
public Sprite sp;//attach sprite from asset folder
void Start(){
    im = GetComponent<Image> ();
	im.sprite = sp;
}