No. Your Apple ID is permanent and will not get deleted or erased if you reset your iPhone. After resetting, you can log back in with your Apple ID.