From a plain biblical standpoint there is no ok for anything mind altering or addictive, medication or not.
From a opinionated standpoint you can say something different in whatever direction. But plain biblically marijuana, alcohol, cigarettes etc. should be avoided.