Oxycodone

I had lap surgery two months ago. My periods and cramps are still really bad. Is it ok to take a leftover oxycodone from the surgery for the cramp pain?