Yes. That is the original intended use for that option. But it might be best for you to use a plugin to add your code. The WordPress Theme Reviewers has updated the guidelines and consider that functionality on a theme as plugin territory so the Custom <Head> Code option on my themes might be removed on future updates.