Yep, my first porn started landing in my inbox right after I joined a Yahoo! group several years ago. I think Yahoo! must've given its members' email addys at that time to a third party.
Never join a yahoo group unless the membership is hidden from the public. You can view that setting before you actually join the group.