Imagine a theoretical parallel universe that does not have and never had a gravitational force. Loose hydrogen atoms would still have formed, and in some cases might have formed H2, but would not coalesce into nebulae or stars. Without gravitational force pulling the hydrogen together, could fusion have occurred to form He? How about heavier elements? The universe would, in any case, be a diffuse cloud of gas, but would the electromagnetic force be strong enough to drive fusion and create heavier elements (not looking for Uranium or anything, but like, Carbon), or would it just be a low-density cloud of hydrogen, for all eternity?
Hydrogen and Helium only
This link tells the story of the big bang aftermath:
It includes the formation of helium using a process which doesn't include gravity at all.
However, the link goes on to explain that nothing other than hydrogen or helium is produced for millions of years.
A million years of cosmic expansion, with all atoms all accelerating away from each other, with nothing to start clustering them. Yeah it'll just be a cloud of hydrogen and helium.
The universe would, in any case, be a diffuse cloud of gas, but would the electromagnetic force be strong enough to drive fusion and create heavier elements
The reason why the heavier elements are formed is because the atoms are forced in close proximity and at a very high temperature; both phenomena are driven (initially at least) by gravity. Left to itself, the electromagnetic force would actually keep atoms apart, and the nuclear forces would have no chance of entering into play.
Without gravity, atoms will just keep on expanding after the Big Bang, getting thinner and colder all the time. Possibly some random helium atom might form in the very first instants, but nothing else.
"What if pi was not 3.14..." is what I thought when I read your question. The answer being, we don't know.
Removing gravity from our universe changes everything at such a fundamental Level that, to be quite honest, nobody can imagine what would happen.
To stick to the pi example, if pi was rational, that would indicate something with the geometry of our universe being different. Which in of itself has so many implications that your universe in which pi = 4 might as well just be a different one.
Same with your question, the universe would not be the same in any shape or form.