can we give a url to img with jquery

JavaScript
$("#my_image").attr("src","second.jpg");
Source

Also in JavaScript: