Yes, if the files are in an Apple TV and iTunes compatible format.
Thus only .mov or .mp4 formats are supported and codecs like H264. You can use MPEG Streamclip o even Handbrake to convert your .avi files to an Apple TV and iTunes compatible format.