Of course, it could also be set up as its own entity and run poorly because of not having any processes or by ignoring those entirely.
Operating system and execution is ultimately what matters.
Just my 2 cents. YMMV
If you have strong quality culture and the culture has enablers in place to drive for excellence a separate QA function is not needed.
I would focus on the quality management system and ensure all elements are in place and sustainable.