Retirement tax questions

If you are under the age of 59.5 and you touch the earnings then yes, it will be subject to a penalty ... see the rules here : 

https://www.irs.gov/publications/p590b#en_US_2016_publink1000231057