No, you can't delete the photos from your Mac's drive. The iCloud Drive is just a syncing service so any file you put on it will be mirrored on your Mac's drive.
If you want to store photos off your Mac then use a local, external HD formatted OS X Extended (journaled) and connected directly to your Mac by cable.
Read these user tips regarding the iCloud:
Where is it safe to store a Photos Library? Requirements for the external drive