Yes, it has a happy ending. Everyone who caused Dong Eun pain paid for it with either their life or losing something very precious such as their freedom. It was the happiest ending that any fan would have wished for before seeing the drama's 2nd part.