Yes, you can deduct the proration
from IL ICR instructions
You may figure a credit for Illinois property you sold in 2023 by combining the 2022 property tax paid in 2023, as well as a portion of the 2023 tax paid based on the time you owned and lived at the property during 2023.