Barely. It was originally a XFree86 project called XDarwin, adopted by Apple as a beta release for Jagwire in 2002, was an optional install in Panther and Tiger, default install in Leopard~Lion, and then was abandoned again in favor of the community-supported XQuartz after 2011:
https://xonx.sourceforge.net/ “XFree86, a free implementation of the X Window System, has been ported to Darwin and Mac OS X. […] Our work has been included in Apple's X11 for Mac OS X. ”
Actually that's an interesting question; why didn't Android use X11? A few minutes of web searching don't seem to turn up anybody commenting on it; do you happen to know how I would check what their reasons were?
X11 let them use existing apps outright and made porting easy. What else would they have used at that time and what advantage would it give them?