It's not so simple to just say "yes". You need to understand what the concept means, since it can be used for slightly different things. If this were a metal, then what you have computed is the work function = the distance from the vacuum level to the chemical potential. For a semiconductor, however, you can compute the electron affinity in the same way, or alternatively the distance from the valence band maximum to vacuum, but for that you also need to consider the band gap, since the chemical potential in ATK is aligned mid-gap.