Algae will not be able to survive without sunlight. Without light, there can be no photosynthesis taking place. And without photosynthesis, the algae will not be able to produce food or regulate its temperature.
It is like aquatic plants too. Though they survive longer?
They live longer because they can be preserved like the algae that astronauts eat.