No problem with that provided the nature of two properties transferred should be Long term capital asset and if you can prove how you invest in Residential property(i.e through showing Payment receipts) or deposit in Capital Gain Depository Scheme,You can avail benifit u/s 54F