Mac computers cannot use the Apple Pencil natively, as the displays don't have the touch support required, but there is a way to paint or draw on an iPad using the stylus and copy the content to a Mac.