No, it is impossible. Let $p \mid a_1$. Since all terms are distinct, we have some term to be the maximum power of $p$ (could be $a_1$). Let it be $a_i=p^k$.
Now, when we take LCM of denominators to add the fractions, the common denominator is clearly divisible by $a_i=p^k$. For each fraction except the one with denominator $a_i$, when we take it to common denominator, the new numerator will be divisible by $p$. However, the fraction $\frac{1}{a_i}$ alone will not have the new numerator divisible by $p$ since $a_i$ is the highest power of $p$ dividing the common denominator.
Now, the numerator is sum of terms divisible by $p$ plus one term not divisible by $p$. This shows that it is not divisible by $p$. However, the denominator is divisible by $p$. Thus, it is impossible for the sum to be $1$.
The only solution would be $(a_1,n)=(1,1)$ where there are no such primes.
P.S. An example might clarify my answer. Take the following:
$$\frac{1}{3}+\frac{1}{7}+\frac{1}{7^2}=\frac{7^2}{3 \cdot 7^2}+\frac{3 \cdot 7}{3 \cdot 7^2}+\frac{3}{3 \cdot 7^2}$$
Notice since $7^2$ is the highest power of $7$, all fractions except $\frac{1}{7^2}$ has new numerator divisible by $7$, thus when you add the numerators, the sum isn't divisible by $7$.