It appears to be possible with adapters, however there are a lot of caveats to go with it. One of the biggest (which goes for pretty much all pre-digital lenses) is that digital sensors are far more reflective than film. Without coating the interior most lens with an anti-reflective coating, it is common to get ghosting from light reflecting off the sensor, off the rear of the lens and back on to the sensor.
Additionally, if the sensor in the camera is larger than the film that it was originally designed to work with, either the lens will have to be further away from the sensor (which removes the ability to focus at infinity (like using an extension tube) or results in the image circle not covering the sensor (which results in heavy vignetting.)
There are times when the discounted price you can get a lens at make it worth dealing with these caveats, but you should be aware going in that a pre-digital lens will not perform anywhere near the same way as a modern lens designed for digital, so take that in to account when deciding what to purchase.
I've looked for previous questions, but these only covered how to use a M42 lens on a Canon body
). \$\endgroup\$