Yes, baseball has a number of unwritten rules or 'codes', one of which pertains to chin music. For example, if a batter is hit by a pitch, the opposing pitcher may throw chin music as a form of retaliation.