Animated Gif for Hero

Can I use an animated gif for the hero on the front page? If so, would it work the same way as an ordinary image?

Thanks!

Yes, you can and it should work the same.