If you turn off iCloud on your iPhone only, all of the photos in your iPhone will remain. You can also access your photos on the connected devices or on iCloud. But, a newly taken image will no longer be saved on iCloud.