@Kathycsp,
Yes, you can use that expression. It is somewhat dated, but i still hear native speakers use the expression. "Hi" is, i believe, used only in North America. It would not be unusual to hear and American or a Canadian say: "Hi, how are you? Long time, no see."
Abby 1213 is giving bad advice, and is not a native speaker, i suspect. "What's up" is a common enough greeting--i doubt that many native speakers would use "What's going on" as an initial greeting. "Sup dawg" is hilarious--that's the slang of a younger generation of Americans of African descent, and it, too has become dated. I advise you not to use that expression as a greeting.