The answer is a qualified yes. All the Pentax lenses M42 with the adapter, the K, M, A, F, FA, DA, DAL, DFA, etc. Except for the SMD lenses. These lenses have the AF motor in the lens, and thus needs the SMD tabs in the mount - which the K100D does not have. The K100D Super and ALL of the succeeding camera models support SMD lenses, but not the K100 and the *ist models. All Pentax models (digital) also have the in body AF screw drive motor.
The K100D is a very nice camera - I still have mine, with the CCD sensor. It does have some disadvantages - in that its going on 10 years old. The good part is that they can be had for a song. You might want to consider a newer camera. The K5 goes for about $300, and has many more features, and a CMOS sensor.