ZX10Hef, yes it can be done but it isn't a straight bolt on. I've done it because I wanted to have my back wheel match my front which is now Gen 2 as I'd already done the relatively straight forward Gen 2 front end swap which has been described here many times before.
The main basic problem is that the rear sprocket on the Gen 2 wheel does not perfectly line up with the Gen 1 front sprocket so there are custom spacers required and also some machining of the inside of the Gen 2 sprocket carrier as the sprocket distance from wheel centreline is slightly different also. NO the sprocket carrier from the Gen 1 can't be used because it is not compatible with the Gen 2 wheel. Even with this I ended up reversing my sprocket to get the alignment just right, as the sprocket has some slight offset.
You also need to use the Gen 2 brake setup as the Gen 1 caliper fouls on the Gen 2 wheel hub if you try to use it because the Gen 1 caliper is dual piston and much fatter on the inside than the Gen 2 caliper and the Gen 1 caliper bracket won't work anyway as the discs are 260mm on the Gen 2 and 240mm on the Gen 1 so the bracket is too short and 'no' they aren't interchangeable. As a result you also need to get a bracket welded on the inside of your Gen 1 swingarm that the Gen 2 caliper bracket will lock into.
I also used the Gen 2 rear master cylinder as I understand the ratios are different.
This is all do-able by decent engineer but in hindsight I should probably have just lived with the different wheels.