Yes, you can substitute pineapple juice for water in a cake recipe to add a hint of pineapple flavor and enhance the overall taste of the cake. Just ensure to adjust the other ingredients accordingly to maintain the proper consistency of the batter.