Yes, it should. Whether it has to 'reconnect' or not depends on the wifi sleep settings: by default it will remain connected even in sleep.
But if it has disconnected due to that setting, then it will reconnect when the device awakes, assuming that wifi is enabled, of course.