It all depends of flange distance, that is the distance expected between the lens mount and the sensor. For each mount (K is one), there is a well defined distance flange.
Flange focal distance - Wikipedia
When you use an adapter (without glass), you add to the distance flange. It is not a problem when the lens you try to adapt expect a larger distance flange than the camera is expecting. For example, you can adapt a Nikon F lens (46.50mm flange distance) to Pentax K camera (45.46mm) without limitation (not counting automatism) as long as the adapter is not larger than 1.04mm.
If the lens + adapter (with no glass) has a distance flange greater than the one expected by the camera, the main problem is that you will loose the ability to focus to infinity. That's why such adapter usually uses glass to allow focusing to infinity, but adding an optical element can add their own problem (flare, chromatic abberrations, ...).