Pain after surgery is common, and healthcare professionals may prescribe medication to help patients remain comfortable while recovering. Oxycodone is one prescription opioid that may be used for certain types of moderate to severe acute pain when a clinician determines that an opioid is appropriate.