Starting the pill

My period started a week ago and ended two days ago, can I start taking the pill now?