No, ample evidence shows that vitamin D (or vitamin D deficiency at least) is causally related to multiple diseases. The evidence is pretty overwhelming. Eg here's a just published review on D deficiency causality for Covid based on applying Hill's Criteria for causality https://www.mdpi.com/2072-6643/17/3/599 and a prior 2022 paper on the same subject https://pubmed.ncbi.nlm.nih.gov/35308241/
Some vitamin D skeptics claim tat there's insufficient evidence from RCTs but few people question the causality of smoking's influence on cancer despite no RCTs for that---that relationship was established also via Hill's Criteria.