Does Flac generally provide better sound quality than mp3's or AAC's? I don't know the difference between any of these file formats.
You've asked a big question, but I'll try to give a succinct answer.
MP3 and AAC have excellent compression for reducing the size of the files. FLAC has a fair compression ratio and thus the files sizes are larger reducing the number of tracks that can fit on a given storage device.
MP3 and AAC are "lossy" formats. In a nutshell, they give up precision to reduce file size. There are many opinions on what you really lose, but there are compression artifacts present in some tracks, often heard as clicks or chirps.
FLAC is a "lossless" format. The compressed information is 100% recovered during playback. It's the same quality and contains all the same information as an uncompressed file, but does not take up as much space.
To put it another way, MP3 is like JPG in the way that FLAC is like PNG. I hope that helps.
Home Desk ~ MB 3.3 Portable • Questyle CMA400i (ASIO) • Sennheiser HD 660S (balanced) / Audeze EL-8 Closed Back / Fostex TR-X00 Ebony • Teac AI-101DA • Jamo C93 + Dayton Audio SUB-1000
Work Desk ~ MB 3.3 Portable / Tidal • SMSL SU-8 v2 • Nobsound NS-05P • THX AAA 789 • Sennheiser HD 58X (balanced)
OTG ~ FiiO M11 • Audiofly AF180 / B&O H6