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