Plan b help

I had unprotected sex yesterday and I'm supposed to get my period today. Is it safe to take plan b still? Will it delay my period if I take it today?