Can exemption can be claimed u/s 54 and 54F when capital gains from transfer of multiple properties are invested in a single residential property?

Can exemption can be claimed u/s 54 and 54F when capital gains from transfer of multiple properties are invested in a single residential property?

If other conditions as regards time limit etc. are fulfilled, exemption under section 54 is allowable where capital gains arising from sale of two residential houses are invested in a single residential house.