if it has the connections you need, mounts, the correct size/shape, and is structurally intact(it will hold the pressure) then use it.
but, be aware, even a 5g is probably too big. its REALLY hard on the pump trying to fill a large tank. stick with a 2-3g.
also, physically, a 5g or bigger will take up a lot of space.