This is GitHub's recommended practice, and I think it'll make the code of conduct show up in a separate link somewhere. It also makes it easier to link to the code of conduct to tell people to behave.