Mostly, but not always - some dung beetles aren't scarab beetles according to this:
'Dung beetles are beetles that feed partly or exclusively on dungs or feces. They possess exceptional dung disposal capacity and one dung beetle can bury dung that is 250 times heavier than itself in one night.
Many dung beetles, known as rollers, roll dung into round balls, which are used as a food source or brooding chambers. Other dung beetles, known as tunnelers, bury the dung wherever they find it. A third group, the dwellers, neither roll nor burrow: they simply live in manure. They are often attracted by the dung collected by burrowing owls.
All the species belong to the superfamily Scarabaeoidea; most of them to the subfamilies Scarabaeinae and Aphodiinae of the family Scarabaeidae (scarab beetles). As most species of Scarabaeinae feed exclusively on feces, that subfamily is often dubbed true dung beetles. There are dung-feeding beetles which belong to other families, such as the Geotrupidae (the earth-boring dung beetle). The Scarabaeinae alone comprises more than 5,000 species.
Dung beetles are currently the only known insect to navigate and orient themselves using the Milky Way.'
copied from:
https://en.wikipedia.org/wiki/Dung_beetle