Probably. Confirm that it’s 100% acetoxy cure silicone (smells like vinegar) and give it plenty of time to fully cure (I wait at least a week). Frankly, I don’t risk it. Pay a few more dollars for aquarium specific silicone. Maybe it’s just rebranded and a ripoff, but I view it as penny wise pound foolish to use hardware store stuff.