Can the employer investigate and sanction harassing conduct that occurs during work-related recreational activities?

Can the employer investigate and sanction harassing conduct that occurs during work-related recreational activities?