A plecostomus can survive without algae, but it is not ideal.
They are herbivores that need algae for nutrition. Without it, they may suffer malnutrition, digestive issues, and abnormal behaviors.
Offer algae wafers or blanched vegetables as alternatives, but some tank algae is best.