Weren't they used as late as WWI?
WWII, actually. Carrier pigeons have a large number of disadvantages, but if you need a way of carrying a message across territory in uncertain hands that is hard to intercept and impossible to listen in on, with no courier at hand and no sat uplink invented yet, it's worth a try.