Can I turn off iCloud on my iPhone without deleting pictures on it?

Can I turn icloud off on my apple phone without deleting all the photos on my phone ?
Re: I would like to turn icloud off on my apple phone, but it says my pictures will be deleted ?

If you disable iCloud Photo Library and / or Photostream prior to signing out of iCloud, your pics "on the device" should not be affected. Still, you should always do a backup first, just in case.

Original thread: https://forums.imore.com/threads/can-i-turn-off-icloud-on-my-iphone-without-deleting-pictures-on-it.354239/