It is not recommended to put your Mac to sleep while updating, Simply put, the Mac shuts down most functions when it's put to sleep, so it could mostly stop the update from continuing.