Yes, tofu can be used as a substitute for butter in vegan cakes. It provides a creamy texture and helps retain moisture.