Yes you can - you can get Darwin - which is Apple’s take on BSD on the XNU kernel, for x86 and suchlike, but that’s all you get, you don’t get any of Apple’s GUI doohickeys for Mac, iPhone, iPad, iWatch or Apple TV…
Why you would want to, is beyond me and probably a subject for someone other than me…
Kernel[edit]
Main article: XNU
The kernel of Darwin is XNU, a hybrid kernel which uses OSFMK 7.3[11] (Open Software Foundation Mach Kernel) from the OSF, various elements of FreeBSD (including the process model, network stack, and virtual file system),[12] and an object-oriented device driver API called I/O Kit.[13] The hybrid kernel design provides the flexibility of a microkernel[14][failed verification – see discussion] and the performance of a monolithic kernel.[15]
Hardware and software support[edit]
Darwin currently includes support for the 64-bit x86-64 variant of the Intel x86 processors used in Intel-based Macs and the 64-bit ARM processors used in the iPhone 5S and later, the 6th generation iPod Touch, the 5th generation iPad and later, the iPad Air family, the iPad Mini 2 and later, the iPad Pro family, the fourth generation and later Apple TVs, the HomePod family, and Macs with Apple silicon such as the 2020 Apple M1 Macs, as well as the Raspberry Pi 3B.[16][17] An open-source port of the XNU kernel exists that supports Darwin on Intel and AMD x86 platforms not officially supported by Apple, though it does not appear to have been updated since 2009.[18] An open-source port of the XNU kernel also exists for ARM platforms.[19] Older versions supported some or all of 32-bit PowerPC, 64-bit PowerPC, 32-bit x86, and 32-bit ARM.
It supports the POSIX API by way of its BSD lineage (largely FreeBSD userland) and a large number of programs written for various other UNIX-like systems can be compiled on Darwin with no changes to the source code.
Darwin does not include many of the defining elements of macOS, such as the Carbon and Cocoa APIs or the Quartz Compositor and Aqua user interface, and thus cannot run Mac applications. It does, however, support a number of lesser-known features of macOS, such as mDNSResponder, which is the multicast DNS responder and a core component of the Bonjour networking technology, and launchd, an advanced service management framework.
Note - many years ago, Apple “supported” Linux on some of their PowerPC Macintoshes, MkLinux… I had one (still got it somewhere) - PowerMac 601 AV, 66 Mhz PowerPC cpu (same as in IBM’s pSeries for running AIX on - and I think the later AS400’s too)… Those were considered “old world” PowerPC macs, i.e. they had proprietary “NuBus” instead of PCI - and MkLinux was the only Linux available for these “Old World” PowerPC Macs… I don’t know why they bothered really, it was still an Apple MICROKERNEL (hence “mk”), running GNU binaries (but taken from the Linux world, not the BSD world), so it wasn’t really Linux, it was just GNU on an Apple developed micro kernel… Linux IS the kernel…