well, it is yes and no.
only the same model fob will work. not every fob.
the same model fob will work only if your car ECU learns it and acknowledges is, so to speak.
anywhere you park in larger parking lots, there's at least several about same year camries. manufacturers are very particular about fobs from car A not to work on car B. hence,

they came up with rolling codes. so, a fob has to be mated with a car to work.
while we on fobs topic.
if you stepped on your fob or case cracked, etc - don't run to dealer to fork 200 greenbacks to buy a new fob. replacement cases are available for around $35 internet, and apparently the old fob innards can be simply transfered into a new case and it's all nice and dandy

now.