Not sure what device and ios version you're running but if you turn off icloud photo library you have 30 days to turn icloud photo library back on and recover your photos. Keep in mind that any photos you delete off your phone are also deleted in icloud as the icloud photo library is not a backup of your photos it's merely a way of syncing them to your device(s). If you did delete any photos from your device you may be able to recover them for up to 30 days by going to your deleted photos and choosing to restore them.