Yes it’s paid for via general income tax here in Australia, not something you pay into yourself per se. So even if you never worked you still get it.
Which is why the government set up superannuation schemes in the '90s because they realised a pinch point was coming down the line in the 2030’s or so. At that time there would have been too many people on the pension for it to be sustainable.