To see this, fix a point $x\in M$ and let $V = T_xM$, endowed with its inner product $g_x$ and complex structure $\mathcal{J}_x$. Let $B_x\subset V\times V$ denote the set of pairs $(v,w)$ such that $v$ and $w$ are unit vectors that satisfy $g_x(v,w) = g_x(v,\mathcal{J}_xw) = 0$$g_x(v,w) = g_x(\mathcal{J}_xv,w) = 0$. This $B_x$ is a smooth, connected manifold of dimension $4n{-}4$. It has a projection $\ell:B_x\to\mathbb{P}(V)\simeq \mathbb{CP}^{n-1}$ defined by $\ell(v,w) = \mathbb{C}v$, and another projection $p:B_x\to\mathrm{Gr}^+_2(V)$, the space of oriented unit $2$-planes in $V$, defined by $p(v,w) = v\wedge w$ whose image is the smooth hypersurface $L_x\subset\mathrm{Gr}^+_2(V)$ of dimension $4n{-}5$ consisting of the $2$-planes on which the canonical $(1,1)$-form defined by $\omega(v\wedge w) = g_x(\mathcal{J}_xv,w)$$\omega$ vanishes, where $\omega(v, w) = g_x(\mathcal{J}_xv,w)$.
Consider the function $K:B_x\to\mathbb{R}$ defined by the sectional curvature $K(v\wedge w)$. This function is constant on the fibers of $p$ by definition, but it is also constant on the fibers of $\ell$ by (1). Now, it is easy to see that these two constancies imply that $K$ is constant on all of $B$$B_x$. (One way to see this is to note that any two points of $B$$B_x$ can be connected by a sequentially connected chain of $p$-fibers and $\ell$-fibers.) Thus, there is a smooth function $\sigma:M\to \mathbb{R}$$\sigma:M\to\mathbb{R}$ such that $K(v\wedge w) = \sigma(x)$ for all $(v,w)\in B_x$, and, moreover, $K(v\wedge \mathcal{J}_xv) = \sigma(x)$ for all $v\in V = T_xM$.
Now, if $v$ is any unit vector in $T_xM$, then there exists a orthonormal $\mathcal{J}$-frame $(X_i,\mathcal{J}X_i)$ on a neighborhood of $x$ such that $X_1(x) = v$. Consequently, $$ \mathrm{Ric}(v,v) = K\bigl(v\wedge \mathcal{J}_xv\bigr) + \sum_{i=2}^nK\bigl(v\wedge X_i(x)\bigr)+ K\bigl(v\wedge \mathcal{J}_xX_i(x)\bigr) = (2n{-}1)\sigma(x). $$$$ \mathrm{Ric}(v,v) = K\bigl(v\wedge \mathcal{J}_xv\bigr) + \sum_{i=2}^nK\bigl(v\wedge X_i(x)\bigr)+ K\bigl(v\wedge \mathcal{J}_xX_i(x)\bigr) = (2n{-}1)\,\sigma(x). $$ In particular, it follows, since $v$ is any unit vector in $T_xM$, that $\mathrm{Ric} = (2n{-}1)\sigma\, g$. Since the dimension of $M$ is greater than $2$, Schur's Lemma implies that $\sigma(x)$$\sigma$ must be a constant $\sigma$ on $M$, i.e., that $g$ is Einstein, which, of course implies (2).
Now, it is well known that if the sectional curvature is constant, i.e, if $K(v\wedge w) = \sigma$ for all $v\wedge w\in \mathrm{Gr}^+_2(TM)$$v\wedge w\in\mathrm{Gr}^+_2(TM)$, then $(M,g)$ has constant curvature. However, we do not yet know this property. We only know that $K$ is fiberwise constant on the hypersurface bundle $L\subset \mathrm{Gr}^+_2(TM)$ unioned with the smaller subbundle $\mathbb{P}(TM)\subset \mathrm{Gr}^+_2(TM)$ consisting of the $2$-planes that are complex lines (in either orientation) and that the scalar curvature function is constant. This, by itself, is not sufficient to conclude that the Riemann curvature tensor has constant sectional curvature.
For example, when $2n=4$ (the first nontrivial case), when given a $(M,g,\mathcal{J})$, i.e., a $\mathrm{U}(2)$-structure on $M$, the space of possiblepotential Riemann curvature tensors that are fiberwisefor which the sectional curvature $K$ is a given constant $\sigma$ on the union of $L$ and $\mathbb{P}(TM)$ and have a given constant scalar curvature function isare the sections of an affine bundle of rank $2$ over $M$. One can set up the structure equations for such a $\mathrm{U}(2)$-structure over $M$ and, by applying the Bianchi identities a few times and differentiating and combining results, conclude that there are no solutionsany such structure (even locallya local one) that do notmust, in fact, have constant sectional curvature. Thus, when $2n=4$, the answer to your question is 'yes'.
However, when $2n>4$, things are not so clear. The first task is to describe the bundle of possible Riemann curvature tensors for $\mathrm{U}(n)$-structures on $M^{2n}$ with the property that the sectional curvature $K$ is constant on $L\cup \mathbb{P}(TM)\subset \mathrm{Gr}^+_2(TM)$. It Again, it's an affine bundle, but I don't yet know its rank. It may be that, when $2n>4$, the constant sectional curvature tensor is the only one that satisfies (1), but I have not shown this yet. If that is the case, then the answer will be 'yes' in those cases as well, with a much easier proof than the case $2n=4$.