Sure, I have quite a few tanks with no livestock.
They are in a cool greenhouse, and temperature fluctuates too much for fish. Plants thrive.
Algae occasionally grows. Since there is no livestock I use an algae control chemical along with removal by hand.
Mostly there is no algae. Just lots of plants.