Can u get pregnant by

So can u get pregnant by having unprotected sex while spotting on birth control?