Has anyone ever smoked weed whilst on birth control?? Is it safe

Just want to know if weed affects birth control,I’m on the pill and a lot of my friend smoke weed. I don’t but I’m curious to know if it would affect my birth control if I ever did xx