Morality is often in the mind of the individual, but some areas of morality are commonly accepted, particularly that it is wrong to murder someone. Macbeth commits the murder of King Duncan. His reason for murdering the king is to expedite his own ascension to the throne. He commits the murder for his own gain. This makes the killing immoral (versus his previous killing of Macdonwald which was acceptable because Macdonwald was a traitor to Scotland). Macbeth himself said he had no good reason to kill Duncan , "...but only vaulting ambition..." (Act 1, sc. 7). Macbeth allows his wife to talk him into killing the king, but he had already considered the idea of killing Duncan in Act 1, sc. 4 when Duncan announces that his son, Malcolm, is the crown prince. Macbeth says, "Stars hide your fires! Let not light see my black and deep desires." He thinks of murder before he speaks with his wife, so she only fanned a flame he lit himself. Justice is served, if you view justice as "an eye for an eye", i.e., Macbeth is killed by Macduff in the final act and Macbeth had not only killed Duncan, he'd had Macduff's family killed as a means of punishing Macduff. Macbeth's killing of the king served his own ambition to get ahead, but his killing of Macduff's family served no purpose. He was angry with and feared Macduff, not his family, so the senseless slaughter of Macduff's wife and children was the act of a merciless tyrant. But again, the question comes down to your own morality. Is it right to take a life as punishment for taking a life?
Macbeth is a moral play in terms of the message that the play delivers towards its end to the readers. The fate of Macbeth emphasizes upon the importance of morality in a human being especially in a serviceman. Those who deviate from the path of loyalty and honesty are destined to meet with the fatal consequences and that is what we observe in Macbeth. Besides Macbeth other characters like Lady Macbeth too is confronted with a tragic reality through the tragic death she finally meets. Considering this one can really make out that the playwright is trying to justify the acts of morality for a happy and contended life of a human being