The current Standard Model of the universe suggests that the universe (the whole universe) formed around 14 billion years ago in a huge explosion called The Big Bang.
It is at that time that all the matter/energy in the universe was created.
The above graphic is commonly used to describe the creation and evolution of the universe.
It starts with quantum fluctuations which generate a period of inflation.
Then there’s a dark period followed by formation of the first stars.
Eventually galaxies with stars and planets begin to form followed by the accelerated expansion of the universe which is where we are right now.
This is the Standard Model of the creation of the universe. This is what we are taught and this is what most cosmologists believe to be true.