Anxiety /depression meds question

Can you still drink alcohol with them and smoke weed or no?  I’m gonna get anxiety and depression medication. I’ve been going through so much but I’m on thyroid medication and I drink a lot and occasionally smoke.

Will that affect it