do you have to take your car back to dealer to set a new remote code on 1999 Buick Century

I bought a new keyless remote and then when I tried to program it it hasn't matched up yet

Asked by for the 1999 Buick Century
1 more answer
Anyone with a Tech2 can do it.