Yes, of course!
Depending on what you want, you might be as well to look for something that's mostly done for you like a lightbox or jquery slider.
If you say a bit more about your requirements, I'm sure you'll get more suggestions.
Thank you. I have ten pictures that I want to fade in automatically