Yes, you can. There are no restrictions for drugs in solid form (tablets, capsules, powders or pills). There may be a ban on bringing medications into the destination country; please fill out this web form in advance for verification. Note that if you are traveling with more than one airline, you should check the terms and conditions of the other airlines as well.
Drugs in liquid form (syrups, tinctures, solutions, ointments, creams) are subject to other liquids' exact requirements and restrictions. The exception is in-flight medications that are vitally important. The airline allows you to take them in any quantity, but it is obligatory with an abstract from a medical history containing a doctor's prescription for such drugs.
Aerosols can also be carried in hand baggage, but the weight of each preparation must be at most 0.5 kg or 500 ml.
It is better to transport all medicines in their original packaging. If you are taking medication as prescribed by a doctor, take your doctor's prescription with you to use such medicines.