The morning after pill

Natalie
So me and my partner had sex this morning and the condom split. After our son we have been so careful for 4 years. Just wondering how long can I leave taking the morning after pill before it isn't as effective? 
As I would need to buy one