Yes, you can delete photos from iCloud Photos without deleting them from your Mac. When you delete photos from iCloud Photos, they are removed from all your devices connected to the same iCloud account, but they remain in the Photos Library on your Mac.