Yes, uneaten food will contribute to the nitrate build up. The rotting food produces ammonia, which is then turned into nitrites and nitrates by the bacteria in your filter. These are harmful to your axies in high concentrations.
Ironically, the algae itslef is harmelss - but it's an indicator of a bigger problem.