Many types of medicines are available to help control pain, including opioids, non-steroidal anti-inflammatory drugs (NSAIDs), and local anesthetics. Treating pain with medication can help you feel more comfortable, which will help your body heal and recover from surgery faster.