Only with corrective optics
Pentax K sits 16.66mm further from the sensor than Leica Screw Mount (M39). An adapter can only add distance, never remove it, so infinity focus is impossible without corrective glass in the adapter — which costs sharpness and usually a stop of light.
Coverage & framing. Both are Full frame, so the lens covers the sensor fully.