Will turning off and delete photos via icloud preferences on macbook delete my iphones photos?

Solution 1:

No, the pictures will still be available on your iPhone if you click Turn off & Delete. The images will then be deleted from iCloud within 30 days.

No matter what, I would definitely make a backup of preferably both your iPhone and the Raw photos/videos e.g. to an external hard drive to ensure even if something goes wrong you don't lose your data.