If I delete a photo from iPhotos, will it also delete the file from Nextcloud?

If I delete a photo from iPhotos, will it also delete the file from Nextcloud?

Nexcloud iOS mobile app for iPhone.

Nope.
Once the photos have been copied in Nextcloud, you can delete them from Photo app, they will remain in Nextcloud.