Not quite. Per the movie script, that was purportedly a Borchardt, one of the earliest self-loading designs, with a Luger-like toggle action, circa 1893. The SFX/prp men used a dressed-up Walther P-38 as a standin for the real thing, as I recall, including scenes in which the pistol fired full-auto, not a feature of the real thing, but we might allow an exception for a possible prototype or *proof-of-concept8 design sample.
and did han solo carry it in the original star wars...
Han solo's *blaster* was indeed based on a broomhandle Mauser, though I believe his was built up on the shorter-barrelled *Bolo* model rather than the longer-barrelled C96. Darned if I can tell ya where he would have put the batteries on a 'broomie!