Took plan B after intercourse

Will it work? My period is in 11 days