Yeah. See below second paragraph.
Ideally check with your accountant before doing so if your taking money out early.
If the withdrawal is made before age 59½ and doesn’t exceed the amount that has been contributed to the Roth IRA over the years, then no income tax is charged. As stated earlier, withdrawals of contributions are tax-free.
If the withdrawal is made before age 59½ and includes earnings, then you may have to pay both income tax and a 10% penalty. There are certain situations under which the IRS will allow you to withdraw without penalty, however. Funds can be distributed for higher education expenses or to buy a home. Certain hardship circumstances, such as permanent disability, also allow funds to be withdrawn tax- and penalty-free