Can't see why that would be a problem.... unless the codeshare screws it up in another way!!
I fly multi-airline/two alliance itneraries regularly (booked by a TA) and have no problem crediting the OW flights to my QF FF account and the *A flights to my NZ one...