spotting on the pill please help

Does spotting prior to period mean that the pill isn't working in protecting you fro pregnancy? Please help