No, agar does not have glucose as a primary component.
Agar is a complex carbohydrate derived from red algae (seaweed). Its primary components are agarose and agaropectin. While it can be used in media that also contain glucose (like starch agar), the agar itself is not made of glucose. Starch agar, for instance, is a nutritive medium that utilizes starch, which is a glucose polymer. So, while agar can exist in the presence of glucose (specifically in starch agar where the starch component is made of glucose subunits), agar itself is chemically distinct and doesn't consist of glucose.
Think of it this way: agar provides the solidifying structure to a growth medium, while glucose, if present, acts as a nutrient source for microorganisms.