You can put any type of encoded file format (FLAC, MP3, WAV, etc) on any physical media (CD, DVD, Flash Drive, Hard Drive). The question then is: do I have the equipment to a) read the physical media and b) decode the file format.
Note that standard players (the one in your car or the one you bought at Walmart) will (almost certainly) not decode FLAC from CD, but may decode WAV and MP3 from CD. From DVD... probably not, as the focus is on video, not audio.
For DVD you'll need a PC and there is no standard for writing music files to DVDs so you'll need PCs to both read and write. If your intent for ripping is for storage and playback on the same machine it works well. If you want to play it everywhere (well a lot of places) stick to MP3 on CDs.
Note that standard players (the one in your car or the one you bought at Walmart) will (almost certainly) not decode FLAC from CD, but may decode WAV and MP3 from CD. From DVD... probably not, as the focus is on video, not audio.
For DVD you'll need a PC and there is no standard for writing music files to DVDs so you'll need PCs to both read and write. If your intent for ripping is for storage and playback on the same machine it works well. If you want to play it everywhere (well a lot of places) stick to MP3 on CDs.