yeah, not the most functional things, but Nikon-F and Pentax-K get along fairly well (Ive read plenty of stories of Pentax users taking old Nikkor glass onto theirs with no real problems, I suppose its fitting, as the only two Legacy mounts around. . .
oh and just FYI, as it is a Legacy Mount, Nikon-F can also do that "Lenses from before I was born" thing
there are limitations, but for the most part anything after the late 70s will all mate to eachother very well
Ive been looking at building a collection of old Ai glass to use, but the early AF lenses go for round the same money and perform just as well optically, so I start leaning into them :P