Retirement tax questions

If you took a withdrawal from a IRA you can avoid the 10% Early Withdrawal Penalty on 10,000 for a home purchase if you are under 59 1/2.