This is basically correct, but as always with philosophy, there is more to it.
Aristotle and many other ancient philosophers (especially Confucius but more-or-less everyone to a certain extent) focused on virtues in their description of how to be a good person. In the last few centuries though, two other ways of thinking about ethics came to dominate thinking in the English speaking academy. One is utilitarianism, which is the idea that we should maximize "utility" or happiness by acting with an eye towards consequences that will make the most people happy. Another is "Kantian deontology," which says that we have certain duties we need to follow no matter what the consequences are, such as the duty to tell the truth or treat other people as ends in themselves.
Utilitarianism and Kantism have a fundamental disagreement about what ethics is even about. You could think about ethics as being about actions: maybe God allows some actions and forbids others arbitrarily, and that's what makes actions good or bad. That's called Divine Command theory and it's not a very popular view in the academy, but it's pretty popular among lay religious people. Another popular action-oriented theory is existentialism, which is the idea that an action is good or bad based on whether it is an authentic expression of who you are.
Utilitarians are "consequentialists". They say what makes an action good or bad is not the action itself, which is neutral, but the consequence of the action. A good action just is an action with good consequences.
Kantians on the other hand, think that consequences are unpredictable and morally irrelevant. What matters for ethics are your intentions. If you honestly and truly intend good for everyone, you're a moral person, even if through no fault of your own, it turns out that your actions have bad effects.
You can think of it like this diagram:
Intentions → Action → Consequences
Philosophers kept debating whether the heart of ethics really is: in the intention or in the consequence?
In the late twentieth century, a new school of though emerged that asked the question, if this debate between intentions and consequences is so central to ethics, why don't the ancients seem to care about it? The answer that was worked out by Elizabeth Anscombe, Philippa Foot, and Alasdair MacIntyre and slowly popularized came to be known as "virtue ethics", but I argue a better name for it is "character ethics".
Where do your intentions come from? They emerge from your character. Where does your character come from? It's a consequence of your earlier actions. The diagram I put up before is actually a circle with character as the missing link. So, when we read Aristotle, the ethical question he is trying to answer with his theory of virtues is not "what are good intentions?" or "what are good consequences?" but "how do I become a good person?" and for him, to be a good person is to have a good character with a virtuous (moderate) disposition.
The reason the debate between the utilitarians and the Kantians couldn't be resolved was that they were both only seeing a small part of ethics and trying to take it for the whole. The virtue ethicists helped us break out of this circular argument by getting us to look at other perspectives. Once we start looking at ethics from this broader perspective, the central question becomes what kind of person do I want to be? Should I be a political man of action, as Aristotle suggests? Should I be saintly lover of God and man, as in Catholic social teaching? Should I be a humane bureaucrat, as in the Confucian tradition? Should I try to be a caring mother, as in feminist care ethics? These questions aren't easy to answer, but their more tractable than the interminable academic circle that dominated discourse before the reemergence of virtue ethics.