You asked
Can I adapt the pentax hd d fa 21mm f 2 4 ed limited dc wr to sony e?
The site doesn't cover adapting this lens to Sony E. The Pentax HD D FA 21mm f/2.4 ED Limited DC WR page lists only one mount, Pentax K, and fits only Pentax bodies. The guide can't say whether an adapter would work, or what it would do to autofocus or image quality, so it won't suggest one.
If you already own a Pentax K body, the lens page is the place to check which cameras it pairs with, from the full-frame K-1 and K-1 Mark II to the APS-C models. If you're shopping for a Sony E camera, the guide's advice is to pick a lens in that mount. For a general-purpose start, its first lenses section recommends a standard zoom and then a fast standard prime, with a wide zoom added for landscapes. The landscape page covers what to look for in a wide lens.
Before buying, confirm the lens's mount and the camera's mount match, or that you're happy with an adapter that the site doesn't assess.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.