Birth control

If I’m using birth control for painful periods is that the same type of birth control used to stop from conceiving.