The short answer is no. The box says, not compatible. Online on the HP website, you can download drivers that are supposedly for mac. But on my mac 12.5 Monterey, I was still unable to print from this multi-printer.
I was able to print from a windows laptop however, using the same printer. So to me it seems that the HP 520 really isn't compatible with macs.