Can I offset the 2015 taxes on the long-term gain from the sale of a second home if I used the gains from the sale to buy a new second home to start 2016?

I am trying to understand whether I can offset my gains on the sale of a second home used as a vacation home as I used the proceeds to buy a bigger home? The new purchase occurred in January 2016.