iLife and iWork will be free with every NEWLY REGISTERED Apple device which was activated after Sept 1, 2013. So yes, if you buy an iOS device, no matter if "new" or "refurbished" or even "used", as long as you set it up as a NEW device in iTunes you'll receive all the apps.