Do I need to attach both antennas to the gateway?

Yes. Although both antennas are identical visually, they serve very different purposes. As you'll notice on the gateway labels, one antenna is for connecting your gateway to the cellular network, while the other is used for connecting the LORA network to your sensors.