No. According to rule 44.2 the penalty is two turns -  including two tacks and two gybes in the same direction. In this case there were two turns including only two gybes and the turns were not in the same direction. Therefore the penalty done has not satisfied the requirements of the rules.