If i understand your question correctly, then no.
Some file formats are containers, some are not.
For example PNG, PCX, TGA, PPM, PGM, WEBP are all files which can represent images, encoding the content in a specific way. These formats, encode just a single frame, in a specific way.
For audio, AAC, AC3, MP3, FLAC are file formats that can only encode audio in a specific way (mpeg 1 encoding, layer 3 audio , aac, ac3 audio etc)
In contrast, you can have AVI, MKV, MP4 which are containers, they can store video, audio, subtitles, and each of the parts can be encoded in various ways, and the file format defines how to store that information as well.