I’m not a doctor, but I would say yes, you’d lose any acquired immunity since you kill off all the memory b-cells that store that information.
But you’d also gain the donor’s immunity, and if they’ve been vaccinated, the recipient would have that immunity as well.