No, withdrawals of the cost basis of Roth IRA fund will not be subject to the 10% penalty, or taxable. Note, earnings are not treated this way. Early withdrawal of earnings in a Roth IRA are subject to tax and penalties.
Here is some information you may find helpful: Roth IRA Withdrawal Rules & Penalties