Birth control pills

I went on a type of birth control about four months ago initially to lighten and fix up my periods I haven’t ever had sex. Would it still protect me from getting pregnant?