Capital Gains not on primary home

We are selling some land and will be splitting the capital gain for 2 years. Can I also split the amounts for capital improvements for 2 years?