Prescription pain medicine is generally considered safe when directed by a doctor. However, they can have potential side effects, such as drowsiness, stomach upset, and constipation, and can also be habit-forming.