No. That is complete nonsense. You can say 'Good night' (two words) to anyone.
In fact, it is probably used more in polite situations and among strangers. For example, a TV or radio presenter will always end a late evening or night-time broadcast by wishing the audience 'Good night'. If you eat dinner in a restaurant, the waiter or owner will say 'Good night' to you as you leave.
The key thing to remember about 'Good night' is that it is not a greeting, and is not an equivalent to 'Good morning/evening/afternoon'. You can use 'Good morning/evening/afternoon' at the appropriate time of day when you are either greeting or taking your leave of someone. 'Good night', however , can only be used at the very END of the conversation, meaning 'Goodbye', when you are leaving someone for the last time that day, usually in the evening or night-time.