It depends on the specific situation. If approved by Party B, it is valid. An agent shall not carry out a civil juristic act in the name of the principal and in his own name, except with the consent or ratification of the principal. An agent shall not, in the name of the principal, carry out a civil juristic act at the same time with other people he represents, except with the consent or ratification of the principal.
Article 168 of the Civil Code: An agent may not carry out a civil juristic act in the name of the principal and in his own name, except with the consent or ratification of the principal. An agent shall not, in the name of the principal, carry out a civil juristic act at the same time with other people he represents, except with the consent or ratification of the principal.
Article 169 Where an agent needs to entrust a third person to act as an agent, it shall obtain the consent or ratification of the principal. If the entrusted agent is approved or ratified by the principal, the principal may directly instruct the entrusted third party on the agency affairs, and the agent is only responsible for the choice and instruction of the third party. If the entrusted agent is not approved or ratified by the principal, the agent shall be responsible for the behavior of the entrusted third party; However, in an emergency, in order to safeguard the interests of the principal, the agent needs to entrust a third party.