The pill

If I start taking the pill on the first day of my period can I still have sex?