Of course.  If the medication helps the mind, then it’s actually better to meditate with it than without it.  We have seen people with solid meditation practice get off anti-depressants and sleeping medication.  Of course, always consult your physician before changing any medication use.