Are cashews walnuts and peanuts in the same family of nuts?

No, cashews and walnuts are tree nuts. Peanuts grow underground and are legumes.