Is it possible to get pregnant from having sex a few days before menstruation?
Generally speaking, "Yima" usually refers to menstruation. Having sex a few days before menstruation has a relatively low possibility of causing pregnancy, but it is not absolutely impossible. The specific analysis is as follows:

A woman's menstrual cycle is typically divided into the menstrual phase, follicular phase, ovulation phase, and luteal phase. The length of the menstrual cycle varies among individuals, but typically ranges between 21 and 35 days. Ovulation generally occurs in the middle of the menstrual cycle, approximately 14 days before the next menstrual period. In most cases, the days just before menstruation fall within the early stage of the menstrual cycle, when ovulation is still some time away. If there is no early ovulation, the probability of pregnancy is relatively low.
However, a woman's ovulation cycle is not absolutely fixed and may be influenced by multiple factors, such as emotions, stress, and environmental changes, which can cause variations in the timing of ovulation. If the days just before menstruation happen to coincide with the post-ovulation period, and the egg is still capable of being fertilized, there remains a possibility of pregnancy during intercourse.
To reduce the risk of pregnancy, it is recommended to use contraceptive measures during intercourse, such as condoms, intrauterine devices (IUDs), or oral contraceptives. Women should also understand their own menstrual cycles and ovulation times to better assess the risk of pregnancy during intercourse.