Heading bug does not align with compass heading when HDG knob is pressed. Cessna 172 - G1000

I have definitely noticed that HDG mode in the G1000 corrects for crosswind. It isn’t supposed to do that?