Yes, I've done this. There is a drop off lane and you usually put the keys in an envelope and drop them in a box of some sort, depending on which company you use.
At SNA, all the rental agencies are located in the lower level of the parking deck, and its accessible 24/7.