Yes over time
All medications have an expiration date, by which the manufacturer essentially guarantees the medication will be effective until that time.
While medication may be effective for a longer period than that, there is no guarantee or study that it will be. It may even have undesirable effects. Expired medications should be discarded and a new prescription requested from your doctor.