Yes, you can refinance if you have both a home equity loan and a primary mortgage. In fact, consolidating these loans through refinancing can make your financial life more manageable.