Yeah. We bought an old Elantra which only came with a single key and no FOB. I bought a cheap gizmo on Amazon that you plug to the OBD port and allows you to program other FOBs.
Modern-ish cars are computers. Once you have physical access, all bets are off.