S/PDIF out from guitar processor into Cubasis

Hi. In general people uses interfaces like IRig to connect the guitar into the IPad and record it in Cubasis. My doubt is: if already there is a S/PDIF OUT in a guitar processor, can I connect this S/PDIF directly to the IPad.