Doing the transfer from the old 3DS will delete the game on the new 3DS. HOWEVER – it will be there to re-download from the eShop afterwards.