Yes, the rim will work with the earlier hub.
I am yet to find a Yamaha drum brake rim that I can't match up with any other Yamaha drum brake hub (ignoring the 32-spoke Z-spoked wheels, of course).
A lot of the "You need exactly the right rim for the hub" talk is paranoia from people who have never tried... Not all of it is paranoia, mind you!