That is what we used to think. But it's not true:
https://www.ncbi.nlm.nih.gov/pubmed/22037012
https://www.ncbi.nlm.nih.gov/pubmed/8857917
https://www.ncbi.nlm.nih.gov/pubmed/26109578
https://www.ncbi.nlm.nih.gov/pubmed/7585286
Note that dietary cholesterol only correlates to blood cholesterol in about 40% of the population. And even within that group, "Even though dietary cholesterol modestly increases LDL in these individuals, it does not seem to increase their risk of heart disease" (https://www.healthline.com/nutrition/dietary-cholesterol-doe... -- emphasis is mine)