For the federal EV tax credit, does the credit get deducted from my total income tax?

Suppose I will pay about $20,000 in income tax in 2023, and I will apply for the federal EV tax credit on my 2023 tax return next year. I suppose I would get the full tax credit (which is $7,500)? I have also heard people saying that the tax credit is based on my tax refund for that year (instead of my income taxes), so I would not get the tax credit at all if I get a tax refund (instead of owing taxes) after filing my tax return.