Yes, headaches are a recognized symptom of mold exposure, usually appearing alongside congestion, sinus pressure and fatigue rather than on their own. If your HVAC system is circulating mold, the tell is that symptoms track with the system running and improve when you're away from the house.
Mold releases spores and, in some species, compounds that irritate the respiratory tract. The resulting sinus congestion and inflammation is a common headache driver, which is why mold headaches usually arrive as part of a cluster with nasal congestion, sinus pressure, fatigue and sometimes a dulled sense of concentration, rather than as an isolated symptom.
Headaches have many causes, and two non-mold ones matter here. Carbon monoxide produces headache, nausea and drowsiness and is an emergency, if you have gas appliances, confirm working CO detectors before pursuing anything else. Dehydration, poor sleep, screen time and ordinary allergies also produce the same symptom without any building involvement.
Look for the moisture source rather than the mold, mold is the symptom, water is the cause. Check the condensate drain on an attic air handler, look for staining near the air handler, and have the system inspected. If growth is confirmed, it needs remediation with the moisture corrected, not a fragrance treatment.
Many people notice a difference within days once the source is removed and the moisture is corrected, though sensitivities vary.
Yes, if symptoms are persistent or severe. This page describes a building problem, not medical advice.