Yes, the yellow box is the player's entity bounding box (aka its collision hull), and it is what collides with everything (floors, boxes, triggers, and so on). To see it offline, type cl_ent_bbox 1 while in third person.
The other hitbox is purely for bullets, because it would be too costly to...