Do i have to do my residency years there for them to be valid?
Yes
If so, can i work during my surgical residency?
No; you can only work for the hospital that grants you the visa for residency. And you would have time to work a second job anyways.