Yes, you can claim exemptions under Sections 54 and 54F, but they apply to different types of assets. Section 54 applies to the sale of residential property, while Section 54F applies to the sale of any long-term capital asset other than residential property. The proceeds must be reinvested in a residential property to claim these exemptions.