Hi, Can I claim Solar & EV tax credit in the same tax year?

I have installed solar system in 2022 and planning to purchase an EV so I would like to know before I finalize my EV purchase.