Yes, you can use two ground rods. Generally, the NEC recommends one rod for one sub-panel. So, if you have two subpanels, you can install two ground rods.