The hen may influence the sex of the chick in some way, but she doesn't "determine" it in any significant sense as far as deciding it cognitively, any more than a human "decides" its child is going to have blue eyes or brown. This is obvious but I wanted to point it out.