Yes, tablets and capsules are allowed in your hand luggage. You can also take essential medicines over 100ml and medical equipment if they're essential for your journey.
You'll need to take a letter from your doctor or a copy of your prescription with you and be prepared for airport staff to open the containers and screen the liquids at security. Medical equipment is screened separately.