It is legal to copy music files from your personal CDs for personal use only. However, it is illegal to distribute the music files to other people.