Yes, and this is the medicine category that gets travelers into genuine legal trouble. Substances treated casually in one country can be controlled narcotics or psychotropics in another: opioid painkillers, ADHD stimulants, benzodiazepines and sleeping tablets, some anxiety medications, and even certain codeine-containing cold products. A handful of countries ban specific substances outright, meaning no permit makes them legal to carry.
Where controlled medicines are permitted for travelers, the usual conditions are tight: a short maximum supply, often much less than the ninety days allowed for ordinary drugs, original packaging, a doctor's letter stating diagnosis and dosage, sometimes an official import certificate applied for weeks in advance, and occasionally a requirement to declare on arrival.
The stakes justify homework: penalties in strict jurisdictions range from confiscation to arrest, even with a valid home prescription. Check your specific medication by generic name against the destination's rules via its embassy, health ministry, or narcotics control agency before booking, and ask your doctor about alternatives if your drug is banned there.