Yes,

But, SPI is either a 3 or 4-wire interface, that you would use SHIFTIN and SHIFTOUT with.

Or you can use the hardware "Master Sychronous Serial Port", if your chip has one.
<br>