The pill. Pros and cons

Please help. I’m on my period atm and the first couple of days are pretty painful. I was wondering if the doctor would prescribe me with the pill for this? I’m in Australia, if anyone can help xx