Retirement tax questions

I have a similar question. I thought it may help to ask here vs. starting a new thread. I recently sold some holdings in my IRA account that are underperforming. I have enough cash in the IRA now where I could fund 2022 Contribution. Can I use some of that cash to fund my 2022 contribution without penalty? I will be 68 at the end of this year if that matters.