How early should I take birth control before I have sex?

I'm not having sex anytime soon. I just want to know for future sakes