Hi, thank you for contacting JustAnswer.com. My name is Russell. I will do my best to provide the right answer to your question.
The Pentax K-50 camera body has a lens mount of the KAF2 type, bayonet mount.
This means it can accept bayonet mount K-type lenses, yes.
Ricoh-imaging.eu says this specifically about its lens mount:
AF coupler, lens information contacts, K-mount with power contacts
If this answers your question fully and adequately, please rate my answer - five stars would be appreciated!
(If you need more info, or have more queries about this camera and mount, let me know and I'll continue to advise you.)
I'm glad to hear that! Good luck with it. Pentax is a good classic name in cameras, and hopefully their latest offering is as good.