What is the pH of a solution of HCOONa and HNO3?
Yes. You could also put the molar ratio into the equation for calculating pH (then you didn't need to calculate the concentrations).

And those are not initial concentrations, but equilibrium concentrations.