The site preference of a large number of alloying elements in Ni3AI (γ′) was studied in a systematic way by using electronic structure calculations based on the local density approximation. Alloying elements in this intermetallic may occupy exclusively the Ni or Al sublattices, or may exhibit no particular site preference. By performing the calculations both for spin-polarized and non-spin-polarized cases, it was found that magnetism strongly affects the computed site substitution behavior of Mn, Fe, and Co in Ni3Al. In the case of Fe, for example, a preference for the Ni sublattice is computed when magnetic effects are ignored, but when magnetic effects are accounted for it is found that Fe has no significant site preference, in much better agreement with a large number of experimental determinations. Some trends regarding the site preference across the periodic table are shown and discussed.