Yes but Group Policy generally just disables the GUI for changing something so that the user cannot change it, but a program changing it would still work most of the time. Have you actually tried running your program while the user is in the regular OU?