You have 14 days from the date you buy your new iPhone from Apple to trade it in. Apple will definitely let you take your new phone home with you, set it up from your old phone, then you can wipe the old phone for trade, following these directions --> What to do before you sell, give away, or trade in your iPhone or iPad - Apple Support
Then you can go back to your Apple Store and complete the trade in person, where you'll get your trade value on the spot. You just have to do so, within 14 days.
Your Apple Store will also help you move the data from your current phone to your new phone at the store on the same day you buy your new iPhone. Once transferred over, you can complete the trade at the store, so you'd only make one trip to your Apple Store.