Can smoking weed make the pill less effective?

Recently I’ve started smoking and it helps with my anxiety. I’ve been on tri-estarylla for two years and I’m wondering if smoking will make the pill less effective in preventing pregnancy