Ric - While you defend or perform a primary attack, if the speed of your revealed maneuver is higher than the enemy ship's, roll 1 additional die.
Seventh Fleet Gunner - While another friendly ship performs a primary attack, if the defender is in your firing arc, you may spend 1 . If you do, the attacker rolls 1 additional die, to a maximum of 4. During the System Phase, you may gain 1 disarm token to recover 1 .
So both abilities say "while you perfom a primary attack."
Does this mean I can choose the order and add dice up to 4 with seventh fleet gunner then a additional one with rics ability?