Safe sex days after period.

Patient: How many days after the last day of period is safe for sex? md and my wife had sex after 4 days of her last period day,so are we safe from pregnancy or what?

Doctor: