The pill

So I have really bad periods and my doctor recommended that I try the pill since nothing else has worked. I’m only 13 and my mom is really against it but she said the choice was up to me. Do you think it’s a good idea did any of you start the pill and have it work?