It depends. If it's REALLY XviD, then it's safe. The problem is that some malicious files will say that they're pointing you to XviD when it's really not XviD. The safest thing to do would be to download VLC Media Player (which can play XviD, DivX, and everything else without needing additional codecs):
http://www.videolan.org/vlc/