Birth Control

would i still have birth control in my system if i went straight from the pill to the shot? like would i still be protected or would i have to wait the three months for it to kick in?