Can stress affect the pills effectiveness?

Can stress/ anxiety make the pill not work as well? I still take it as directed but I know when you’re stressed, you release hormones and I didn’t know if the stress hormones affected the hormones in the pill