Birth control

So if I begin the pill on Sunday when will it become used to my body to start having unprotected Sex I know the pill doesn't protect you from HIV OR OTHER STDS