It is generally unlikely to get pregnant if you have unprotected sex on the first day of your period. Menstruation is typically associated with the shedding of the uterine lining, and during this time, ovulation (the release of an egg) usually does not occur.
However, sperm can live inside a woman's body for up to five days, and menstrual cycles can vary. If you have a shorter cycle or ovulate soon after your period ends, there is a slim possibility that sperm from intercourse during your period could still be present when you ovulate.
If you're looking for reliable contraception or if you have specific concerns about pregnancy risk, it’s always a good idea to consult with a healthcare provider.