Whether or not Sophocles was concerned with morality when writing Electra is subject to great debate. One perspective is that the play is not interested in condemning or condoning Electra's actions, as morality is not a direct consideration. Another perspective is that Sophocles morally condones the murders that take place at the end of the play, because the royal couple deserves to be killed. Another is that Sophocles condemns the murders on the grounds that matricide is always wrong, or that murder never justifies murder. Perhaps a middle ground interpretation is that Sophocles leaves his play intentionally morally ambiguous. He is concerned with morality as a topic of debate, but does not choose one side over the other.
Electra is an admirable character, because she is fulfilling a duty to her father.
Electra is not an admirable character, because she acts immorally.