The A0, A1, etc. "names" are just #define's into existence. The value depends on the board. For a 328 based board, A0 and 14 are equivalent. So, what you did was perfectly acceptable.
You may want a second loop in setup to make sure they're inputs ( they are, by default, but if you wanted outputs, you could lose some hair chasing that down)