When opioids are taken as prescribed, they can help manage pain effectively. But these medicines come with risks and side effects that are important to understand.