First of all, we need to check which type of contraceptive pill we are taking. Contraceptive pills can be categorized into long-acting contraceptive pills, short-acting contraceptive pills and emergency contraceptive pills. Short-acting contraceptive pills need to be taken on the first day of menstruation and be taken every day in a row; while long-acting contraceptive pills need to be taken according to a determined date and according to the regularity of taking the pill in order to have a contraceptive effect. If a woman has intercourse within 24 hours after taking these two types of pills on demand, she is unlikely to become pregnant. If you have intercourse within 24 hours after taking the emergency contraceptive pill, it is still possible to get pregnant. This is because the emergency contraceptive pill is only a morning-after contraceptive, and it only works to prevent pregnancy during sex before taking the pill. It is only effective in preventing sex before taking the pill, but it is not effective in preventing sex after taking the pill. If you are not planning to get pregnant, it is advisable to take contraceptive measures in advance.