There are no rules against so. Plus, GitHub has it's own AI so it would be silly for them to ban it when their own service has it (and, in typical Microsoft fashion, shoves it down your throat).