It’s easier than it used to be, but…
IMO, it’s more a case of cherry picking a load of components that are known to work well (plenty out there do, and there’s lots that don’t) and building a computer from those components, then installing OSX on it. I’ve run a Hackintosh for a couple of years now, and after very few minor teething problems, all has been good. I did a shedload of research first though (OSX86 Project and Insanely Mac forums are your friend here for sure!) to make sure I was picking parts that would work. More parts work well now than when I built mine 2 years ago, so it’s probably less of a minefield than it was, but as with anything, proper research and preparation will stand you well in time.