I have a good adult friend who had one at 12 and it took a long time to diagnose because she was dealing with pediatrician. We are born with our ovaries, so no reason it can't happen and I assume at 12 ovarian hormones are pretty ramped up.
Cyst can form at any age, even as young as 3 years.