A necessary and sufficient condition for your question to have a positive answer is that $A$ be equidimensional, that is, $\mathrm{dim} (A/\mathfrak{p}) = \mathrm{dim}(A)$ for every minimal prime $\mathfrak p$.  This eliminates exactly the phenomenon in Charles Staats' example.