Birth control

Can you get birth control over the counter and it still be affective?