If you get payed you're a professional otherwise an amateur, at least in the original meaning of the words.
If that programer would go and coach their friend’s basketball team for free they would be an amateur coach, but they are still a professional programmer even while coaching.