If you factory reset iphone 5 will it keep your icloud account on the phone?

If you factory reset iphone 5 will it keep your icloud account on the phone?

If you just held down the home button and lock button at the same time. Everything on the phone should still be there. IF you restored it on iTunes. No it did not. But if you restored it. All you have to do is log back into it with the same account info in the settings! Hope this helps!