Lime can be applied anytime the soil is not frozen. However, Fall application is best because winter snow and rain, combined with the freezing and thawing of soil, help to incorporate the lime into the soil.
Apply lime according to soil test results. See soil testing information. https://extension.umd.edu/hgic/soils/soil-testing