Chickens communicate and seek information with their beaks. If they peck you, it isn't always a sign of aggression.
I have a couple of SS one-year old hens who have spunky personalities. They are absolutely not mean or aggressive. However, they both will come up behind me and peck me on the leg to get my attention. It's meant to signal to me that they want to be picked up and cuddled, because they always settle down in quiet bliss when I pause in my task and oblige them.
On the other hand, I have a GLW two-year old hen who is bossy and nosy, and doesn't trust me, and she will peck me if I touch her or show attention to other hens who are of equal status to her. My rooster occasionally will bite me if he's scared or upset over something and I make a sudden move when he's in this emotional state.
Yes, chickens are subject to emotions - fear, mistrust, affection, excitement, curiosity, etc. It's what makes them such charming creatures.
Don't misjudge your hen. She may just be trying to tell you something.