It's just like in English. "Hi, John." We even, occasionally, say "John, hi." Usually that's more out of surprise or more along the lines of special occasion or so forth. For example, "John, hi! Long time no see!" It might not have the same effect in Japanese, but it seems to be that way to me.