Just make sure you wire up the batteries such that you get the voltage you are looking for. Some battery holders have the batteries wired in series, so for the example of 2 AAAs, you'd get 1.5 V + 1.5 V = 3 V. However, if they are wired in parallel, you'll just get 1.5 V with double the current capacity.
Sean
Sean