That's reasonable to do when that form is the reason a page exists but otherwise it's best to not mess with the user's focus.