Yes, it is legal to search for someone's email address on facebook if you are friends with them. However, it is illegal to use someone's email address for spamming or any other illegal activities without their permission.