Almost ALL keys can be programmed thru your car, IF you have two keys. So it's always good to purchase a spare for this reason.
Granted, it can be extremely cumbersome to accomplish. With on car it was something like turn key on, turn off, turn key on, roll down window, roll up window, open driver door, close driver door, press audio button. Turn off car, turn back on.
Key is now programmed. And if you think I'm being funny... I'm NOT!