You can save the tax on your long term capital gains by investing them in certain bonds. Bonds issued by the National Highway Authority of India (NHAI) or Rural Electrification Corporation (REC) have been specified for this purpose. These are redeemable after 5 years (Prior to 2018, it was 3 years) and must not be sold before the lapse of 5 years (Prior to 2018, it was 3 years) from the date of sale of the house property.
So yes you may take the benefits of 54EC.
Regards.