Get your taxes done using TurboTax

No. it is not allowed in your situation. 

Publication 590a says

You generally can make a tax-free withdrawal of contributions if you do it before the due date or extended due date (valid extension for 2023) for filing your tax return for the year in which you made them. You can do this if, for each contribution you withdraw, both of the following conditions apply.
- You did not take a deduction for the contribution.
- You withdraw any interest or other income earned on the contribution. You can take into account any loss on the contribution while it was in the IRA when calculating the amount that must be withdrawn. 

- You must include in income any earnings on the contributions you withdraw. Include the earnings in income for the year in which you made the contributions, not the year in which you withdraw them.

- The 10% additional tax on distributions made before you reach age 59-1/2 does not apply to these tax-free withdrawals of your contributions. However, the distribution of interest or other income must be reported on Form 5329 and, unless the distribution qualifies as an exception to the age 59-1/2 rule, it will be subject to this tax.