birth control

ive been on the shot for over a year now & im due to get my shot on december 1st. so say i have sex the day before or the day after my shot, do you think im still protected?