I think that question depends on your religious views. IF we take the assumption for the purpose of this question that there is no god of any type, and we were created by chance and evolution then I don’t see how the universe can have a purpose. Everything that happens is simply a product of consequences of something happening before it.
I don’t know. It’s actually quire scary to imagine that it might have a purpose, and to wonder that it might be. To me, it seems to be a fantastic place where things happen in a chaotic manner with no purpose, but then you notice the amazing and complex interactions that develop between different species and it makes you think again.