Yes, the yolk contains all of the cholesterol, too, but it isn’t as bad as you think. In the past, it was thought that high cholesterol in food translated to high blood cholesterol, but researchers confirm it isn’t true (via Harvard Health). If you’re still not convinced, Examine reports on studies that include people who eat up to six eggs a day with no effect on blood cholesterol. Though a moderate intake is advised, yolks should not be demonized, because they contain a significant amount of micronutrients.
While cholesterol in your diet isn’t the issue, saturated and trans fats stimulate your liver to create cholesterol, according to researchers at Harvard Health. Eggs mainly contain mono- and polyunsaturated fats and therefore do not contribute significantly to these effects (via Nutrition Data). However, be mindful of what you serve with your eggs: Classic breakfast foods such as bacon, sausages, fried potatoes, and greasy pastries do indeed contain saturated fats and are the more likely culprits.
Ultimately, if you are looking for a pure protein, fat- and cholesterol-free option, go for the egg whites. If you want to benefit from all of the impressive nutritional advantages packed into an egg, go for the whole thing.