Yep. No brainer. I've done it on any number of bikes over the years.
Other than making it physically fit, which either requires new ears (and JCWhitney sells a really nice 'universal' set for about $15), or bending the old ears so they angle to accept the larger diameter bucket, all you do is swap entire assemblies.
Really, all the wires just 'pass thru' the bucket. Pull the wires out of the old bucket, feed 'em into the back of the new one, done.
The wire plug that attaches to the headlight itself may be different, but they all have the same 3 prongs - low beam filament, high beam filament, and the common or ground.
Good luck with it all.
Kirk