Answer
Yes, Oscar I did serve in the French military. Prior to assuming the Swedish throne upon Charles XV's death in 1872, Oscar had pursued a successful military career. He began serving in the Norwegian army where he reached the rank of major general, later transitioning to serve in the French army under Napoleon III during the Crimean War where he attained the rank of brigadier general.