Yes, if the universe is:
flat (zero spatial curvature)
has finite mass energy (since we know it is uniform this also means it is bounded. If you drop the bounded es because you don't want to admit uniformity or otherwise, i.e., if it is unbounded, then the answer is clearly no)
is simply connected (has what is called a trivial topology)
TheThen it does have to have an edge.
See the zero curvature and other sections of the wiki article on the shape of the universe, it's fairly complete, at https://en.wikipedia.org/wiki/Shape_of_the_universe
The simply connected condition is critical also. If you allow other topologies then both the torus and the Klein bottle topologies are bounded, flat and have no edges.
There are a total of 17 possible different topologies for multiply connected spaces that are flat, in 3D (our spatial dimensions, which is what is referred to when one talks about curvature of the universe) Riemannian space. See fig. 4 in the arXiv paper at https://arxiv.org/abs/0802.2236 for all of them. There are others if the space is not flat.
As far as space being unbounded but mass energy finite, that would violate what we know of the homogeneity and isotropy of the universe. From the CMB we see the (large) scale homogeneity and isotropy. Now, we only see back to 380,000 years after the Big Bang, but no sign of large in-homogeneitiesinhomogeneities. It could theoretically still be true that out inflation bubble is homogeneous, and thus the part of the universe beyond our particle horizon might not be, but there is no theoretical reason to think so. The more prevalent view is that it was as uniform more or less, and the same inflation that created our bubble might have created others. If we ever fully understand our inflation (which at this point looks pretty consistent with observations but those don't rule out various versions, or other unknown mechanisms from an unknown theory of quantum gravity), we might find out better or differently. But presently, a large scale homogeneity with possible bubbles is consistent with all observations.