Interpersonal relationships at companies are quite common, at all levels up to the C-suite. It depends on company policy whether it's permitted or not and Nvidia had no policy barring it. It becomes a legal problem in the event of coercion or favoritism, but otherwise, it happens.