How long it takes for the mini pill to be effective 😬😬😬??

How long does it take for slynd birth control (mini pill) to be effective? If I had some unprotected sex last night and I started on the pill Tuesday,am I protected? I wasn’t on any b/c before this.