sounds like a bit of an old wives tale to me
The first thing to remember is that algea is quite normal in aquatic environments so you'll have to live with it to a certain extent. obviously there are ways of stopping it from getting totally out of controlled.
1. Don't leave your lights on too long, eight hours is about the maximum recommended.
2. Don't locate your tank in direct sunlight, this will encourage algae to grow
3. Don't overfeed, high nitrate and uneaten food encourages algae to grow
4. Clean your glass on a regular basis with an algae scraper
5. Carry out regular water changes
Just a few ways that will stop algea taking over your tank