Plan b

can you still take a plan b if your period supposed to come the next day ? & will the pill work ? If my period does come the next day does that mean I’m not pregnant? How long do i have to wait to know if the pill work ?