Avoiding 10% early withdrawal if distribution after closing date

Can I avoid 10% early withdrawal from IRA if I used the money to purchase a primary residence (have not owned a home in more than 2 years) and if I withdrew the money after the closing date?