motherboard + optical drive

Solution
Short answer: Yes.

Long answer: All ODDs that use SATA data cable are compatible with any Z370 chipset MoBo. You just need SATA data cable to connect it to the MoBo and SATA power cable from PSU to power it (SATA power cable comes with PSU),
ODD specs: https://www.cnet.com/products/samsung-sh-s223c-dvdrw-r-dl-dvd-ram-drive-serial-ata/specs/

Aeacus

Titan
Ambassador
Short answer: Yes.

Long answer: All ODDs that use SATA data cable are compatible with any Z370 chipset MoBo. You just need SATA data cable to connect it to the MoBo and SATA power cable from PSU to power it (SATA power cable comes with PSU),
ODD specs: https://www.cnet.com/products/samsung-sh-s223c-dvdrw-r-dl-dvd-ram-drive-serial-ata/specs/
 
Solution