No, data will this be on iCloud. Once you log in again and toggle on iCloud Photo, iCloud Drive etc, they'll show up again.
But you should still back up your phone to make sure you don't lose anything: How to back up your iPhone, iPad, and iPod touch - Apple Support