Yes, this is possible. You'll need two submit buttons, each with its own data connection to send email.
You would need a boolean field to toggle, and force the form (or the user) to choose between IT or payroll. Once that selection has been made you can use conditional formatting to hide the section that does not apply.
Hope this helps!