Thats a good question, but for example here's the warning off an old Led Zeppelin cassette tape I have.
Warning: Unauthorized reproduction of this recording is prohibited by Federal law and subject to criminal prosecution.
So technically I don't think it would be legal, but the laws vary by country. I don't think you have much to worry about, but what I think won't help anybody in court
.