Not sure if it is still possible, but the work flow for this used to be to use iTunes to burn the tracks or album to a CD and then rip the newly created CD to a format of your choice.
If you don’t have a CD burner, I seem to remember it was possible to emulate a cd burner on Windows and create an iso instead. I don’t remember how I did that though. I was running XP back then and that was a long time ago.