If the whites of your eyes look yellow instead, it's a good sign you have jaundice. This liver disease can be the result of hepatitis, alcohol abuse, gallstones, and rarely cancer. See a doctor right away.
Yellow spots in your eyes are more likely to be growths called pinguecula (protein, fat, or calcium) or pterygium (fleshy tissue). You don't usually need to get treatment for these unless they bother you or interfere with your vision.