The safest recommendation is to avoid all nuts.
This is true even if only to avoid misidentification or contamination. Most tree nuts do cross react with each other. That being said it is possible for some people to be allergic to some nuts but not others. Your best bet is to speak directly with an allergist.