No, macOS is not Linux. Both macOS and Linux are UNIX-like operating systems, and hence both support UNIX commands. This is why many people get confused that macOS is also Linux.