Metformin PCOS

Maddie
So I've been researching it some/reading Glow posts on it, but I am still confused.. I understand Metformin is often used to treat PCOS symptoms. 
Is it used to only treat PCOS symptoms if you have PCOS due to blood sugar issues? Thanks everyone!