Can old clumps of discharge in underwear cause a vaginal infection?

My vagina area is itchy but I’ve been wearing these underwear for a little bit and there’s some old clumps of old discharge and idk if that is causing it?