It's possible, but his contract situation in Israel probably requires him to be on a full NBA contract, not a two-way, for him to reasonably afford his buy-out and I'm not sure that would work for the C's. There are luxury tax implications as well, since Boston's right around that tax line currently, but unless someone wants Carsen or Bruno for free I'm not convinced it's worth burning a second-round pick to salary-dump Dunn to bring Yam over a year early to fill the same role.
Probably makes more sense for Yam to come over next year, even though he's likely good enough to warrant at least a two-way right now.
EDIT: I will say that dumping Dunn and replacing him with Yam on a rookie deal probably lets Boston duck the tax if they don't sign Schroeder, but I'd be a little disappointed burning assets just to pad Wyc's bottom line.