no. A peanut grows as a seed in a pod and belongs to the legume family. It is therefore related to, for example, peas, beans and soy, not to tree nuts.
Why do we often call peanuts nuts, then?
Peanuts contain relatively a lot of fat and protein and are eaten like nuts. That is why, in cooking and in dietary advice, they are often placed in the same group. Botanically, they remain legumes.
Can you be allergic to peanuts but not to nuts?
Yes. Peanuts and nuts are separate allergens. Someone can react to peanut and tolerate certain nuts, or the other way round. Even within the group of nuts, the reaction can differ per type of nut. Always have individual allergies assessed professionally.
Which nuts must be declared separately?
The allergen rules name, among others, almond, hazelnut, walnut, cashew, pecan, Brazil nut, pistachio and macadamia. Peanut stands apart from this group on the list of legally mandatory allergens.
Why is this practically important?
A warning for ‘nuts’ does not automatically cover peanut, and ‘peanut-free’ does not say that a product is also free of tree nuts. Check both statements when both allergies are relevant.
Sources

See who it suits at once
After one scan, Emily immediately sees who the product is suitable for.
