Research indicates that the claim that too much or daily sunscreen can block people from receiving adequate Vitamin D from the sun is largely unfounded and disproved by research.
While sunscreen does block some UVB rays, which is where this myth comes from, it still allows enough rays to reach the skin to support Vitamin D production. Research published in the National Library of Medicine states, "There is little evidence that sunscreen decreases 25(OH)D concentration when used in real-life settings, suggesting that concerns about vitamin D should not negate skin cancer prevention advice."
https://pubmed.ncbi.nlm.nih.gov/30945275/
Additionally, the benefit of daily application of sunscreen far outweighs any potential risk. According to the Skin Cancer Foundation, "unprotected sun exposure puts you at risk for any number of conditions that can permanently damage your skin, disfigure you, sometimes even kill you. And the regular use of sun protection can go a long way to keep any of that from happening."
https://www.skincancer.org/blog/sun-protection-and-vitamin-d/