Company officials and advocates have said it is critical to give young women easy access to the so-called morning-after pill , which works best to prevent unwanted pregnancies when used within 24 hours of sexual intercourse .