You are correct! You recognized that this is a Brønsted acid-base reaction and remembered that the hydrogen atom attached to the oxygen atom has a greater positive character than the hydrogen atom attached to the nitrogen atom.