Sram Red compatibility with Shimano 105 cassette

I have Sram Red etap, with a sram red 22 chain, can I use the Shimano 105 cassette that’s on my trainer? Both cassettes are 11-28.

SRAM and shimano cassettes are interchangeable, I used a 105 cassette on sram equipped bike