Sure you can! It's just that yellow cake tastes a little richer than white cake does. But if that does not bother you, I say go for it! (and use the whole egg, not just the whites.)
You can, but I think it will alter the flavor slightly. Also, instead of using the water the cake mix calls for, use the juice from the pineapples and add water if necessary to make the desired amount.