Better not.
My friend who got matched into a residency program waited till she got her green card in hands, then switched her job from a researcher to a resident. Her attorney suggested that. Her cased was base on the fact that she made some contribution in medical research, not medical service.