Yes, your answer is correct.
As you know, a solution's pH is simply a measure of its concentration of hydronium ions,
More specifically, the pH of a solution is calculated by taking the negative log base 10 of the concentration of hydrogen ions.
#color(blue)(|bar(ul(color(white)(a/a)"pH" = - log(["H"^(+)])color(white)(a/a)|)))#
This means that all you have to do to determine the pH of a solution of known concentration of hydrogen ions is to use that equation. In your case, you know that
#["H"^(+)] = "0.020 M"#
The pH of the solution will thus be
#"pH" = - log(0.020) = 1.699 ~~ color(green)(|bar(ul(color(white)(a/a)1.70color(white)(a/a)|)))#
Therefore, your answer is correct.