It depends on the Creative Commons license for the image. Some need you to credit the original creator, while others don’t. Always read the license before using an image.