Yes, you can invest in equity for building a retirement corpus. However, equity should be a part of the overall portfolio comprising other investment options like debt, real estate, etc. It is also important to reduce equity component in the portfolio as you near retirement.