Sex on depo

I got my first depo shot 9 days ago and had unprotected sex on the 9th day. Would the shot be effective by then or should I have waited a few more days?