Yes but to get into most Ph.D programs in economics you need the following math courses: Calculus at least three semesters, matrix or linear algebra, one year of mathematical statistics, a course on proofs, and at least one course in real analysis. And that is only the minimum requirements.
Real life is also a great source of education in economics.