Yup! Was about to type out a similar reply. To further clarify:
Hymenoptera - order of Insecta - ants, bees, wasps, hornets
Aculeata - infraorder of Hymenoptera - bees, wasps, hornets
Apidae - family of Aculeata - bees (also bumblebees)
Vespidae - family of Aculeata - wasps, hornets
Formicidae - family of Hymenoptera - ants
edit20260227: forgot ants belong to aculeata