There is a difference. 온다 vs 간다 is equivalent to "I come" and "I go" in english, respectively.
So if you are saying "I will come out" you will use 나올게요 and if you are saying "I will go out" you will use 나갈게요.
Hope that helps explain things a little better :)