Collared dove in garden at night

I was just out in the garden, just after 10pm and pitch black, when a collared dove fluttered down from the trees and landed in the garden. It sat beside the fence, roughly where there was a pile of feathers the other day. It didn't move when I approached it, only moving away when I touched it. It didn't seem to be too interested in flying back up into the trees. As there are several cats in our garden at night, I didn't want to leave it so I caught it in a blanket, and put it in a box in the garage with some food and water, with the intention of letting it out in the morning. Have I done the right thing?

Stephen