Depends. On the face if it, everything equal, it’s less than 1mm difference per spoke, which should be fine.
But there’s too many variable to be sure. There are a couple of different ways manufacturers define ERD – spoke level to bottom of driver slot in nipple, or level with top of nipple. Spokes can be chosen which are rounded up to the nearest mm required or rounded down, or up/down to the nearest 2mm. Or are the wrong length, but just about OK in terms of thread engagement.
In your case, those might not apply, or might cancel out, or might add up to spokes which are in no way compatible.
But if you’ve got both, and you’re not in a hurry, dismantle and measure up, order if you need to.
Edit. Bez said it better, plus mentioned 14mm nipples.