Answer
No, Kim Davis's refusal to issue same-sex marriage licenses was not legal. The Supreme Court ruled that same-sex couples have the right to marry, and that all states must issue marriage licenses to same-sex couples. Davis was ordered by a federal court to issue the licenses, but she refused. She was then held in contempt of court and ultimately removed from office.